Class: Rgviz::TimeOfDayColumn

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

Instance Attribute Summary

Attributes inherited from ValueColumn

#value

Instance Method Summary collapse

Methods inherited from ValueColumn

#eql?, #hash, #initialize

Constructor Details

This class inherits a constructor from Rgviz::ValueColumn

Instance Method Details

#accept(visitor) ⇒ Object



399
400
401
402
# File 'lib/rgviz/nodes.rb', line 399

def accept(visitor)
  visitor.visit_time_of_day_column(self)
  visitor.end_visit_time_of_day_column self
end

#to_sObject



404
405
406
# File 'lib/rgviz/nodes.rb', line 404

def to_s
  "timeofday '" + value.strftime("%H:%M:%S") + "'"
end