Sha256: aa778c6d58a01153ae3a6a3a17a9bfaf498289e2eaa57d324914db9ddd6fdfd6
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
#ActiveOrient::Model.orientdb_class name: 'time_base', superclass: 'V' class Tag < TimeBase def monat in_day_of.out.value_string.first end def die_stunde h h.to_i >0 && h.to_i<31 ? out_time_of[h].in : nil end def stunde out_time_of.in end def monat in_day_of.out.first end def next monat.tag[ value + 1 ] end def prev monat.tag[ value - 1 ] end def datum "#{ value}.#{monat.value}.#{Date.today.year}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active-orient-0.5 | examples/time_graph/model/tag.rb |