Exception: Spockets::MissingArgument

Inherits:
Exception
  • Object
show all
Defined in:
lib/spockets/Exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(a) ⇒ MissingArgument

Returns a new instance of MissingArgument.



28
29
30
# File 'lib/spockets/Exceptions.rb', line 28

def initialize(a)
    @argument = a
end

Instance Attribute Details

#argumentObject (readonly)

Returns the value of attribute argument.



27
28
29
# File 'lib/spockets/Exceptions.rb', line 27

def argument
  @argument
end

Instance Method Details

#to_sObject



32
33
34
# File 'lib/spockets/Exceptions.rb', line 32

def to_s
    "Missing required argument: #{@argument}"
end