Class: Saper::Arguments::Variable

Inherits:
Saper::Argument show all
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

TODO:

Returns:

  • (Boolean)

6
7
8
# File 'lib/saper/arguments/variable.rb', line 6

def valid?(value)
  value.is_a?(String) || value.is_a?(Symbol)
end