Class Uttk::Filters::FilterOption
In: lib/uttk/filters.rb
Parent: Object

Methods

new   to_hash   yaml_load  

Attributes

option  [R] 

Public Class methods

[Source]

# File lib/uttk/filters.rb, line 32
      def initialize ( anObject )
        @option = anObject
      end

[Source]

# File lib/uttk/filters.rb, line 38
      def self.yaml_load ( anObject )
        new(superclass.name.demodulize.sub(/Option$/, '').constantize.yaml_load(anObject))
      end

Public Instance methods

[Source]

# File lib/uttk/filters.rb, line 35
      def to_hash
        { self.class.name.demodulize.underscore.to_sym => option }
      end

[Validate]