Class: Time

Inherits:
Object show all
Defined in:
lib/nydp/core_ext.rb

Constant Summary collapse

@@wl =
Set.new %i{ year month day hour min sec }

Instance Method Summary collapse

Instance Method Details

#_nydp_get(key) ⇒ Object



92
# File 'lib/nydp/core_ext.rb', line 92

def _nydp_get      key ; _nydp_time_get(key.to_s.to_sym) ; end

#_nydp_time_get(key) ⇒ Object



91
# File 'lib/nydp/core_ext.rb', line 91

def _nydp_time_get key ; send(key) if @@wl.include?(key) ; end

#nydp_typeObject



93
# File 'lib/nydp/core_ext.rb', line 93

def nydp_type          ; :time                           ; end