lib/other.rb
# Method missing enables fancy stuff like
# Jahr[2000 .. 2005].monat(5..7).value  (https://github.com/topofocus/orientdb_time_graph)
Method missing enables fancy stuff like
Jahr[2000 ..
Method missing enables fancy stuff like Jahr [ 2000 ..
def method_missing(method, *key)
    unless method == :to_hash || method == :to_str 
      return self.map{|x| x.public_send(method, *key)}
    end
  end
def method_missing ( method , * key ) unless method == :to_hash || method == :to_str return self . map { | x | x . public_send ( method , * key ) } end end
Method missing enables fancy stuff like
Jahr[2000 .. 2005].monat(5..7).value  (https://github.com/topofocus/orientdb_time_graph)
Method missing enables fancy stuff like Jahr [ 2000 .. 2005 ] . monat ( 5 .. 7 ) . value ( https : // github . com / topofocus / orientdb_time_graph )
#if method == :to_int #  return self.first  #else  #|| method == :to_int # end
method
<not_specific>
key
<not_specific>