Class: Jcsv::RBParseInt

Inherits:
Object
  • Object
show all
Includes:
NextFilter
Defined in:
lib/numeric_filters.rb

Overview

Instance Attribute Summary

Attributes included from NextFilter

#last_filter, #next_filter

Instance Method Summary collapse

Methods included from NextFilter

#>>, #exec_next

Instance Method Details

#execute(value, context) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/numeric_filters.rb', line 38

def execute(value, context)
  begin
    exec_next(super(value, context), context)
  rescue org.supercsv.exception.SuperCsvCellProcessorException => e
    raise FilterError.new("#{e.message} in #{context}")
  end
end