Exception: Exception
- Defined in:
- lib/tyler.rb
Direct Known Subclasses
ArgumentError, EOFError, FloatDomainError, IOError, IndexError, Interrupt, LoadError, LocalJumpError, NameError, NoMemoryError, NoMethodError, NotImplementedError, RangeError, RegexpError, RuntimeError, ScriptError, SecurityError, SignalException, StandardError, SyntaxError, SystemCallError, SystemExit, SystemStackError, ThreadError, TypeError, ZeroDivisionError
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
2 3 4 5 |
# File 'lib/tyler.rb', line 2 def to_s responses = ["I've got nothing.", "Good job, genius."] return responses[rand(responses.length-1)] end |