Class: DatasetExplorer::ValueEvaluator::IntegerEvaluator

Inherits:
Object
  • Object
show all
Defined in:
lib/dataset_explorer/value_evaluator.rb

Instance Method Summary collapse

Instance Method Details

#accept?(value) ⇒ Boolean

Returns:

  • (Boolean)


116
117
118
119
120
# File 'lib/dataset_explorer/value_evaluator.rb', line 116

def accept?(value)
  Integer(value)
rescue ArgumentError, TypeError
  false
end