Class: Jcsv::RBParseRFC822

Inherits:
Filter
  • Object
show all
Includes:
NextFilter
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) ⇒ RBParseRFC822

Returns a new instance of RBParseRFC822.



159
160
161
162
# File 'lib/date_filters.rb', line 159

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

Instance Method Details

#execute(value, context) ⇒ Object



164
165
166
167
# File 'lib/date_filters.rb', line 164

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