Class: Brainstorm::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/brainstorm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (readonly)

Returns the value of attribute value.



28
29
30
# File 'lib/brainstorm.rb', line 28

def value
  @value
end

Instance Method Details

#to_sObject



33
34
35
# File 'lib/brainstorm.rb', line 33

def to_s
  "[#{@value}]"
end