Exception: Hanoi::Jane::SearchException

Inherits:
Exception
  • Object
show all
Defined in:
lib/hanoi/jane/towers/towers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ SearchException

Returns a new instance of SearchException.



109
110
111
# File 'lib/hanoi/jane/towers/towers.rb', line 109

def initialize text
  @text = text
end

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



107
108
109
# File 'lib/hanoi/jane/towers/towers.rb', line 107

def text
  @text
end