Exception: Textus::Dispatch::MissingArgs

Inherits:
Error
  • Object
show all
Defined in:
lib/textus/dispatch/binder.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#code

Instance Method Summary collapse

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

#missingObject (readonly)

Returns the value of attribute missing.



4
5
6
# File 'lib/textus/dispatch/binder.rb', line 4

def missing
  @missing
end

#specObject (readonly)

Returns the value of attribute spec.



4
5
6
# File 'lib/textus/dispatch/binder.rb', line 4

def spec
  @spec
end