Class: Rabarber::Input::Types::Symbol
- Defined in:
- lib/rabarber/input/types/symbol.rb
Instance Attribute Summary
Attributes inherited from Base
#error_message, #error_type, #value
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Rabarber::Input::Base
Instance Method Details
#valid? ⇒ Boolean
7 8 9 |
# File 'lib/rabarber/input/types/symbol.rb', line 7 def valid? (value.is_a?(::Symbol) || value.is_a?(String)) && value.present? end |