Class: Rabarber::Input::Types::Symbol

Inherits:
Base
  • Object
show all
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

#initialize, #process

Constructor Details

This class inherits a constructor from Rabarber::Input::Base

Instance Method Details

#valid?Boolean

Returns:



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