Class: Odca::Overlays::EntryOverlay::InputValidator
- Inherits:
-
Object
- Object
- Odca::Overlays::EntryOverlay::InputValidator
- Defined in:
- lib/odca/overlays/entry_overlay.rb
Instance Method Summary collapse
Instance Method Details
#validate(value) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/odca/overlays/entry_overlay.rb', line 23 def validate(value) if value.nil? || value.strip.empty? Odca::NullValue.new else value.split('|').map(&:strip) end end |