Class: DatasetExplorer::ValueEvaluator::BooleanEvaluator

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

Constant Summary collapse

ACCEPT =
%w[
  true
  false
].freeze

Instance Method Summary collapse

Instance Method Details

#accept?(value) ⇒ Boolean

Returns:

  • (Boolean)


129
130
131
# File 'lib/dataset_explorer/value_evaluator.rb', line 129

def accept?(value)
  ACCEPT.include?(value.to_s.downcase)
end