Exception: Kindergarten::Perimeter::NoPurpose
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Kindergarten::Perimeter::NoPurpose
- Defined in:
- lib/kindergarten/exceptions.rb
Instance Method Summary collapse
-
#initialize(perimeter) ⇒ NoPurpose
constructor
A new instance of NoPurpose.
- #to_s ⇒ Object
Constructor Details
#initialize(perimeter) ⇒ NoPurpose
Returns a new instance of NoPurpose.
41 42 43 44 |
# File 'lib/kindergarten/exceptions.rb', line 41 def initialize(perimeter) @perimeter = perimeter super end |
Instance Method Details
#to_s ⇒ Object
46 47 48 |
# File 'lib/kindergarten/exceptions.rb', line 46 def to_s "The module #{@perimeter.name} does not have a purpose." end |