Class: Date

Inherits:
Object
  • Object
show all
Defined in:
lib/delorean.rb

Class Method Summary collapse

Class Method Details

.today(sg = Date::ITALY) ⇒ Object


18
19
20
21
# File 'lib/delorean.rb', line 18

def today(sg=Date::ITALY)
  t = Time.now
  self.civil(t.year, t.mon, t.mday, sg )
end

.today_without_deloreanObject


16
# File 'lib/delorean.rb', line 16

alias_method :today_without_delorean, :today