Class: Helioth::Features
- Inherits:
-
Object
- Object
- Helioth::Features
- Defined in:
- lib/helioth/features.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
Returns the value of attribute list.
Instance Method Summary collapse
- #feature(name, &block) ⇒ Object
-
#initialize(&block) ⇒ Features
constructor
A new instance of Features.
Constructor Details
#initialize(&block) ⇒ Features
Returns a new instance of Features.
6 7 8 9 |
# File 'lib/helioth/features.rb', line 6 def initialize(&block) @list = Array.new instance_eval(&block) end |
Instance Attribute Details
#list ⇒ Object
Returns the value of attribute list.
4 5 6 |
# File 'lib/helioth/features.rb', line 4 def list @list end |