Class: Goat::ExpansionHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/goat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeExpansionHelper

Returns a new instance of ExpansionHelper.



1060
1061
1062
# File 'lib/goat.rb', line 1060

def initialize
  @components = Set.new
end

Instance Attribute Details

#componentsObject (readonly)

Returns the value of attribute components.



1058
1059
1060
# File 'lib/goat.rb', line 1058

def components
  @components
end

Instance Method Details

#component_used(c) ⇒ Object



1064
1065
1066
# File 'lib/goat.rb', line 1064

def component_used(c)
  @components << c
end