module Sequel::DateParseInputHandler

  1. lib/sequel/extensions/date_parse_input_handler.rb

Public Instance methods

date_parse_input_handler(&block)
[show 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)

Call date parse input handler with input string.

[show source]
   # 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)

Call date parse input handler with input string.

[show source]
   # 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)

Call date parse input handler with input string.

[show source]
   # File lib/sequel/extensions/date_parse_input_handler.rb
49 def string_to_time(string)
50   super(handle_date_parse_input(string))
51 end