Sha256: 08f18521bffb2cf95abe7a2d1aa990a752fc5ff18bdaf4162b4e4437bbec4a4b
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 Bytes
Contents
class TG::Jahr #< TG::TimeBase def der_monat m m >0 && m<13 ? out_tg_month_of[m].in : nil end # returns an array of days # thus enables the use as # Monat[9].tag[9] def monat *key if key.blank? out_tg_month_of.in else key= key.first if key.is_a?(Array) && key.size == 1 # out_tg_month_of[key].in nodes( :out, via: /month/ , where: { value: key } ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
orientdb-time-graph-0.7 | model/tg/jahr.rb |