Exception: Kindergarten::Perimeter::RestrictedMethodError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Kindergarten::Perimeter::RestrictedMethodError
- Defined in:
- lib/kindergarten/exceptions.rb
Instance Method Summary collapse
-
#initialize(perimeter, method) ⇒ RestrictedMethodError
constructor
A new instance of RestrictedMethodError.
- #to_s ⇒ Object
Constructor Details
#initialize(perimeter, method) ⇒ RestrictedMethodError
Returns a new instance of RestrictedMethodError.
52 53 54 55 |
# File 'lib/kindergarten/exceptions.rb', line 52 def initialize(perimeter, method) @perimeter = perimeter @method = method end |
Instance Method Details
#to_s ⇒ Object
57 58 59 |
# File 'lib/kindergarten/exceptions.rb', line 57 def to_s "You exposed '#{method}' on the #{perimeter}, but that is a restricted method" end |