Class: Thoreau::Model::Setup
- Inherits:
-
Object
- Object
- Thoreau::Model::Setup
- Defined in:
- lib/thoreau/model/setup.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(name, values, block) ⇒ Setup
constructor
A new instance of Setup.
Constructor Details
#initialize(name, values, block) ⇒ Setup
Returns a new instance of Setup.
8 9 10 11 12 13 |
# File 'lib/thoreau/model/setup.rb', line 8 def initialize name, values, block @name = name.to_s @values = values # @value = [values].flatten unless values.nil? @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
6 7 8 |
# File 'lib/thoreau/model/setup.rb', line 6 def block @block end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/thoreau/model/setup.rb', line 6 def name @name end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
6 7 8 |
# File 'lib/thoreau/model/setup.rb', line 6 def values @values end |