Class: Linen::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/linen/handler.rb

Overview

The abstract handler from which all other handlers must inherit.

Authors

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

CLI

Class Method Summary collapse

Class Method Details

.die(input = '') ⇒ Object

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/linen/handler.rb', line 27

def self::die( input = '' )
	raise NotImplementedError, "You must override die() in the handler"
end

.historyObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/linen/handler.rb', line 22

def self::say( input = '' )
	raise NotImplementedError, "You must override say() in the handler"
end