Class: AttributedClass::Attribute
- Defined in:
- lib/uttk/strategies/Strategy.rb
Instance Method Summary collapse
- #expand? ⇒ Boolean
-
#initialize(name, desc, *a, &b) ⇒ Attribute
constructor
A new instance of Attribute.
- #initialize_without_expand ⇒ Object
Constructor Details
#initialize(name, desc, *a, &b) ⇒ Attribute
Returns a new instance of Attribute.
24 25 26 27 28 |
# File 'lib/uttk/strategies/Strategy.rb', line 24 def initialize ( name, desc, *a, &b ) my, our = a.partition { |x| x == :dont_expand } @expand = my.empty? (name, desc, *our, &b) end |
Instance Method Details
#expand? ⇒ Boolean
30 31 32 |
# File 'lib/uttk/strategies/Strategy.rb', line 30 def @expand end |
#initialize_without_expand ⇒ Object
23 |
# File 'lib/uttk/strategies/Strategy.rb', line 23 alias :initialize_without_expand :initialize |