Class: Linen::Handler
- Inherits:
-
Object
- Object
- Linen::Handler
- Defined in:
- lib/linen/handler.rb
Overview
The abstract handler from which all other handlers must inherit.
Authors
-
Ben Bleything <[email protected]>
Copyright
Copyright © 2007 Laika, Inc.
This code released under the terms of the BSD license.
Version
$Id: handler.rb 274 2007-07-25 21:06:42Z bbleything $
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.die(input = '') ⇒ Object
27 28 29 |
# File 'lib/linen/handler.rb', line 27 def self::die( input = '' ) raise NotImplementedError, "You must override die() in the handler" end |
.history ⇒ Object
32 33 34 |
# File 'lib/linen/handler.rb', line 32 def self::history raise NotImplementedError, "Handlers must provide a #history method that quacks like an Array" end |
.say(input = '') ⇒ Object
22 23 24 |
# File 'lib/linen/handler.rb', line 22 def self::say( input = '' ) raise NotImplementedError, "You must override say() in the handler" end |