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.



1053
1054
1055
# File 'lib/goat.rb', line 1053

def initialize
  @components = Set.new
end

Instance Attribute Details

#componentsObject (readonly)

Returns the value of attribute components.



1051
1052
1053
# File 'lib/goat.rb', line 1051

def components
  @components
end

Instance Method Details

#component_used(c) ⇒ Object



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

def component_used(c)
  @components << c
end