Class: DatasetExplorer::ValueEvaluator::DateEvaluator
- Inherits:
-
Object
- Object
- DatasetExplorer::ValueEvaluator::DateEvaluator
- Defined in:
- lib/dataset_explorer/value_evaluator.rb
Instance Method Summary collapse
Instance Method Details
#accept?(value) ⇒ Boolean
90 91 92 93 94 95 96 97 98 |
# File 'lib/dataset_explorer/value_evaluator.rb', line 90 def accept?(value) if value.is_a?(String) return Date.parse(value.to_s) end value.is_a?(Date) rescue ArgumentError false end |