Class: AttributedClass::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/uttk/strategies/Strategy.rb

Instance Method Summary collapse

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?
  initialize_without_expand(name, desc, *our, &b)
end

Instance Method Details

#expand?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/uttk/strategies/Strategy.rb', line 30

def expand?
  @expand
end

#initialize_without_expandObject



23
# File 'lib/uttk/strategies/Strategy.rb', line 23

alias :initialize_without_expand :initialize