class NotKindOfTimeError
Public Class Methods
new(message = nil)
click to toggle source
Calls superclass method
# File lib/errors/not_kind_of_time.rb, line 2 def initialize(message = nil) super(message || default_message) end
Private Instance Methods
default_message()
click to toggle source
# File lib/errors/not_kind_of_time.rb, line 8 def default_message 'Argument not respond to #to_time (not kind of Time, Date or DateTime)' end