Sha256: c1e3e30547d7462d3a945ad494bd4af66d521f81e034a3035678b3398fb8a9ff
Contents?: true
Size: 316 Bytes
Versions: 1
Compression:
Stored size: 316 Bytes
Contents
class Stunde < TimeBase def tag in_time_of.out end def datum month = in_time_of.out.in_day_of.out.value day = in_time_of.out.value "#{day.first}.#{month.flatten.first}.#{Date.today.year} #{value}:00" end def next puts value.inspect in_day_of.out.first.tag( value + 1 ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active-orient-0.5 | examples/time_graph/model/stunde.rb |