Exception: Kindergarten::Sandbox::NoPurposeError

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

Instance Method Summary collapse

Constructor Details

#initialize(purpose, sandbox) ⇒ NoPurposeError

Returns a new instance of NoPurposeError.



17
18
19
20
# File 'lib/kindergarten/exceptions.rb', line 17

def initialize(purpose, sandbox)
  @purpose = purpose
  @sandbox = sandbox
end

Instance Method Details

#to_sObject



22
23
24
# File 'lib/kindergarten/exceptions.rb', line 22

def to_s
  "undefined purpose '#{@purpose}' for #{@sandbox}"
end