Class: Rgviz::ValueColumn
- Inherits:
-
Object
- Object
- Rgviz::ValueColumn
- Defined in:
- lib/rgviz/nodes.rb
Direct Known Subclasses
BooleanColumn, DateColumn, DateTimeColumn, NumberColumn, StringColumn, TimeOfDayColumn
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
- #hash ⇒ Object
-
#initialize(value) ⇒ ValueColumn
constructor
A new instance of ValueColumn.
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ ValueColumn
Returns a new instance of ValueColumn.
332 333 334 |
# File 'lib/rgviz/nodes.rb', line 332 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
330 331 332 |
# File 'lib/rgviz/nodes.rb', line 330 def value @value end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
340 341 342 |
# File 'lib/rgviz/nodes.rb', line 340 def eql?(other) other.class == self.class && other.value == @value end |
#hash ⇒ Object
336 337 338 |
# File 'lib/rgviz/nodes.rb', line 336 def hash @value.hash end |
#to_s ⇒ Object
346 347 348 |
# File 'lib/rgviz/nodes.rb', line 346 def to_s value.to_s end |