Class: Saper::Arguments::Service

Inherits:
Saper::Argument show all
Defined in:
lib/saper/arguments/service.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


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

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