Class: Rgviz::ValueColumn

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject

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: ==

Returns:

  • (Boolean)


340
341
342
# File 'lib/rgviz/nodes.rb', line 340

def eql?(other)
  other.class == self.class && other.value == @value
end

#hashObject



336
337
338
# File 'lib/rgviz/nodes.rb', line 336

def hash
  @value.hash
end

#to_sObject



346
347
348
# File 'lib/rgviz/nodes.rb', line 346

def to_s
  value.to_s
end