Exception: Spockets::MissingArgument
- Inherits:
-
Exception
- Object
- Exception
- Spockets::MissingArgument
- Defined in:
- lib/spockets/Exceptions.rb
Instance Attribute Summary collapse
-
#argument ⇒ Object
readonly
Returns the value of attribute argument.
Instance Method Summary collapse
-
#initialize(a) ⇒ MissingArgument
constructor
A new instance of MissingArgument.
- #to_s ⇒ Object
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
#argument ⇒ Object (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_s ⇒ Object
32 33 34 |
# File 'lib/spockets/Exceptions.rb', line 32 def to_s "Missing required argument: #{@argument}" end |