Class: Saper::Arguments::Variable
- Inherits:
-
Saper::Argument
- Object
- Saper::Argument
- Saper::Arguments::Variable
- Defined in:
- lib/saper/arguments/variable.rb
Instance Method Summary collapse
Methods inherited from Saper::Argument
[], #action, exists?, inherited, #initialize, #mandatory?, new, #normalize, #optional?, #serialize, #set, subclasses, #to_string, type, #value
Constructor Details
This class inherits a constructor from Saper::Argument
Instance Method Details
#valid?(value) ⇒ Boolean
5 6 7 |
# File 'lib/saper/arguments/variable.rb', line 5 def valid?(value) value.is_a?(String) || value.is_a?(Symbol) end |