class Salah::Date

Public Instance Methods

friday?() click to toggle source
# File lib/salah/date.rb, line 20
def friday?
  to_date.friday?
end
monday?() click to toggle source
# File lib/salah/date.rb, line 4
def monday?
  to_date.monday?
end
saturday?() click to toggle source
# File lib/salah/date.rb, line 24
def saturday?
  to_date.saturday?
end
sunday?() click to toggle source
# File lib/salah/date.rb, line 28
def sunday?
  to_date.sunday?
end
thursday?() click to toggle source
# File lib/salah/date.rb, line 16
def thursday?
  to_date.thursday?
end
to_date() click to toggle source

@return [Date]

Returns a Date object for the string field {#iso8601}.
# File lib/salah/date.rb, line 36
def to_date
  @to_date ||= Date.strptime iso8601, "%Y-%m-%d"
end
tuesday?() click to toggle source
# File lib/salah/date.rb, line 8
def tuesday?
  to_date.tuesday?
end
wednesday?() click to toggle source
# File lib/salah/date.rb, line 12
def wednesday?
  to_date.wednesday?
end