Class: Brainstorm::Value
- Inherits:
-
Object
- Object
- Brainstorm::Value
- Defined in:
- lib/brainstorm.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Value
constructor
A new instance of Value.
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ Value
Returns a new instance of Value.
29 30 31 |
# File 'lib/brainstorm.rb', line 29 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
28 29 30 |
# File 'lib/brainstorm.rb', line 28 def value @value end |
Instance Method Details
#to_s ⇒ Object
33 34 35 |
# File 'lib/brainstorm.rb', line 33 def to_s "[#{@value}]" end |