Exception: Textus::Dispatch::MissingArgs
- Defined in:
- lib/textus/dispatch/binder.rb
Instance Attribute Summary collapse
-
#missing ⇒ Object
readonly
Returns the value of attribute missing.
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(spec, missing) ⇒ MissingArgs
constructor
A new instance of MissingArgs.
Methods inherited from Error
#details, #exit_code, #hint, #to_envelope
Constructor Details
#initialize(spec, missing) ⇒ MissingArgs
Returns a new instance of MissingArgs.
6 7 8 9 10 |
# File 'lib/textus/dispatch/binder.rb', line 6 def initialize(spec, missing) @spec = spec @missing = missing super("missing_args", "#{spec.verb}: missing #{missing.map(&:wire).join(", ")}") end |
Instance Attribute Details
#missing ⇒ Object (readonly)
Returns the value of attribute missing.
4 5 6 |
# File 'lib/textus/dispatch/binder.rb', line 4 def missing @missing end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
4 5 6 |
# File 'lib/textus/dispatch/binder.rb', line 4 def spec @spec end |