Class: Date

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

Instance Method Summary collapse

Instance Method Details

#sunrise(lat, lng) ⇒ Object



2
3
4
# File 'lib/sun_time/date_ext.rb', line 2

def sunrise(lat, lng)
  SunTime.new(self, lat, lng).sunrise
end

#sunset(lat, lng) ⇒ Object



6
7
8
# File 'lib/sun_time/date_ext.rb', line 6

def sunset(lat, lng)
  SunTime.new(self, lat, lng).sunset
end