Class: Jcsv::RBParseStrptime
Overview
Instance Attribute Summary
Attributes included from NextFilter
Instance Method Summary collapse
- #execute(value, context) ⇒ Object
-
#initialize(format, start) ⇒ RBParseStrptime
constructor
A new instance of RBParseStrptime.
Methods included from NextFilter
Constructor Details
#initialize(format, start) ⇒ RBParseStrptime
Returns a new instance of RBParseStrptime.
177 178 179 180 181 |
# File 'lib/date_filters.rb', line 177 def initialize(format, start) @format = format @start = start super() end |
Instance Method Details
#execute(value, context) ⇒ Object
183 184 185 186 |
# File 'lib/date_filters.rb', line 183 def execute(value, context) validateInputNotNull(value, context) exec_next(DateTime.strptime(value, @format, @start), context) end |