Sha256: c2370d6fe028f3b4f32130515205d416970ee449713639100e866c592b56de80

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

#ActiveOrient::Model.orientdb_class name: 'time_base', superclass: 'V'
class Monat  < TimeBase
  def der_tag d
#    d=d-1
    d >0 && d<31 ? out_day_of[d].in : nil
  end
 
  # returns an array of days
  # thus enables the use as  
  #   Monat[9].tag[9]
  def tag
    out_day_of.in
  end

  # returns the specified edge 
  #  i.e.  Monat[9]
  #

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active-orient-0.5 examples/time_graph/model/monat.rb