Class: Jcsv::RBOptional

Inherits:
Filter
  • Object
show all
Defined in:
lib/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



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

def execute(value, context)
  (value)? exec_next(value, context) : value      
end