Class: Jcsv::RBParseRFC2822

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) ⇒ RBParseRFC2822

Returns a new instance of RBParseRFC2822.



122
123
124
125
# File 'lib/date_filters.rb', line 122

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

Instance Method Details

#execute(value, context) ⇒ Object



127
128
129
130
# File 'lib/date_filters.rb', line 127

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