Class: Jcsv::RBNotNil

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



106
107
108
109
# File 'lib/constraints.rb', line 106

def execute(value, context)
  raise ConstraintViolation, "Empty value found:\n#{context}" if (value.nil?)
  exec_next(value, context)
end