Exception: Brigadier::Exceptions::Base
- Inherits:
-
StandardError
- Object
- StandardError
- Brigadier::Exceptions::Base
- Defined in:
- lib/brigadier/exceptions/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#obj ⇒ Object
readonly
Returns the value of attribute obj.
Instance Method Summary collapse
- #as_str ⇒ Object
-
#initialize(obj) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(obj) ⇒ Base
6 7 8 |
# File 'lib/brigadier/exceptions/base.rb', line 6 def initialize(obj) @obj = obj end |
Instance Attribute Details
#obj ⇒ Object (readonly)
Returns the value of attribute obj.
4 5 6 |
# File 'lib/brigadier/exceptions/base.rb', line 4 def obj @obj end |
Instance Method Details
#as_str ⇒ Object
10 11 12 |
# File 'lib/brigadier/exceptions/base.rb', line 10 def as_str "%s '%s': %s" % [ parameter_type, obj.name, ] end |