Exception: Kindergarten::Perimeter::NoPurpose

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/kindergarten/exceptions.rb

Instance Method Summary collapse

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_sObject



46
47
48
# File 'lib/kindergarten/exceptions.rb', line 46

def to_s
  "The module #{@perimeter.name} does not have a purpose."
end