module Sequel::DateParseInputHandler
Public Instance Methods
date_parse_input_handler(&block)
click to toggle source
# File lib/sequel/extensions/date_parse_input_handler.rb, line 29 def date_parse_input_handler(&block) singleton_class.class_eval do define_method(:handle_date_parse_input, &block) private :handle_date_parse_input alias handle_date_parse_input handle_date_parse_input end end
string_to_date(string)
click to toggle source
Call date parse input handler with input string.
Calls superclass method
# File lib/sequel/extensions/date_parse_input_handler.rb, line 38 def string_to_date(string) super(handle_date_parse_input(string)) end
string_to_datetime(string)
click to toggle source
Call date parse input handler with input string.
Calls superclass method
# File lib/sequel/extensions/date_parse_input_handler.rb, line 43 def string_to_datetime(string) super(handle_date_parse_input(string)) end
string_to_time(string)
click to toggle source
Call date parse input handler with input string.
Calls superclass method
# File lib/sequel/extensions/date_parse_input_handler.rb, line 48 def string_to_time(string) super(handle_date_parse_input(string)) end
Private Instance Methods
_date_parse(string)
click to toggle source
Call date parse input handler with input string.
Calls superclass method
# File lib/sequel/extensions/date_parse_input_handler.rb, line 55 def _date_parse(string) super(handle_date_parse_input(string)) end
handle_date_parse_input(string)
click to toggle source
Return string as-is by default, so by default behavior does not change.
# File lib/sequel/extensions/date_parse_input_handler.rb, line 60 def handle_date_parse_input(string) string end