module Sequel::DateParseInputHandler

Public Instance Methods

date_parse_input_handler(&block) click to toggle source
   # File lib/sequel/extensions/date_parse_input_handler.rb
30 def date_parse_input_handler(&block)
31   singleton_class.class_eval do
32     define_method(:handle_date_parse_input, &block)
33     private :handle_date_parse_input
34     alias handle_date_parse_input handle_date_parse_input
35   end
36 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
39 def string_to_date(string)
40   super(handle_date_parse_input(string))
41 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
44 def string_to_datetime(string)
45   super(handle_date_parse_input(string))
46 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
49 def string_to_time(string)
50   super(handle_date_parse_input(string))
51 end