Exception: QB::Role::NoMatchesError
- Inherits:
-
UserInputError
- Object
- StandardError
- Error
- UserInputError
- QB::Role::NoMatchesError
- Defined in:
- lib/qb/role/errors.rb
Overview
raised by .require
when no roles match input
Instance Attribute Summary collapse
-
#input ⇒ Object
Returns the value of attribute input.
Instance Method Summary collapse
-
#initialize(input) ⇒ NoMatchesError
constructor
A new instance of NoMatchesError.
Constructor Details
#initialize(input) ⇒ NoMatchesError
Returns a new instance of NoMatchesError.
11 12 13 14 15 |
# File 'lib/qb/role/errors.rb', line 11 def initialize input @input = input super "no roles match input #{ @input.inspect }" end |
Instance Attribute Details
#input ⇒ Object
Returns the value of attribute input.
9 10 11 |
# File 'lib/qb/role/errors.rb', line 9 def input @input end |