Class: Jcsv::RBParseISO8601

Inherits:
Filter
  • Object
show all
Defined in:
lib/date_filters.rb

Overview

Instance Attribute Summary

Attributes included from NextFilter

#last_filter, #next_filter

Instance Method Summary collapse

Methods included from NextFilter

#>>, #exec_next

Constructor Details

#initialize(start) ⇒ RBParseISO8601

Returns a new instance of RBParseISO8601.



55
56
57
58
# File 'lib/date_filters.rb', line 55

def initialize(start)
  @start = start
  super()
end

Instance Method Details

#execute(value, context) ⇒ Object



60
61
62
63
# File 'lib/date_filters.rb', line 60

def execute(value, context)
  validateInputNotNull(value, context)
  exec_next(DateTime.iso8601(value, @start), context)
end