Exception: Hyperdrive::Errors::DSL::UnknownArgument
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Hyperdrive::Errors::DSL::UnknownArgument
- Defined in:
- lib/hyperdrive/errors/dsl/unknown_argument.rb
Instance Method Summary collapse
-
#initialize(argument, method_name) ⇒ UnknownArgument
constructor
A new instance of UnknownArgument.
- #message ⇒ Object
Constructor Details
#initialize(argument, method_name) ⇒ UnknownArgument
Returns a new instance of UnknownArgument.
5 6 7 8 9 10 11 12 13 |
# File 'lib/hyperdrive/errors/dsl/unknown_argument.rb', line 5 def initialize(argument, method_name) @argument = case argument when Symbol ":#{argument}" else argument.to_s end @method_name = method_name end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/hyperdrive/errors/dsl/unknown_argument.rb', line 15 def "DSL Error: The argument you supplied (#{@argument}) is not supported by the `#{@method_name}' method." end |