Class: Goat::ExpansionHelper
Instance Attribute Summary collapse
-
#components ⇒ Object
readonly
Returns the value of attribute components.
Instance Method Summary collapse
- #component_used(c) ⇒ Object
-
#initialize ⇒ ExpansionHelper
constructor
A new instance of ExpansionHelper.
Constructor Details
#initialize ⇒ ExpansionHelper
Returns a new instance of ExpansionHelper.
1060 1061 1062 |
# File 'lib/goat.rb', line 1060 def initialize @components = Set.new end |
Instance Attribute Details
#components ⇒ Object (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 |