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.
1053 1054 1055 |
# File 'lib/goat.rb', line 1053 def initialize @components = Set.new end |
Instance Attribute Details
#components ⇒ Object (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 |