class Weekend
Private Class Methods
time_coerced(date)
click to toggle source
# File lib/weekend.rb, line 12 def time_coerced(date) return date if date.instance_of?(Time) raise NotKindOfTimeError unless date.respond_to?(:to_time) date.to_time end