Module: Rainman::Handler

Defined in:
lib/rainman/handler.rb

Overview

The Handler module contains methods that are added to handler classes at runtime. They are available as class methods.

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object

Public: Extended hook; this adds the InstanceMethods module to handler classes.

base - The Module/Class that was extended with this module.



33
34
35
# File 'lib/rainman/handler.rb', line 33

def self.extended(base)
  base.send(:include, InstanceMethods)
end

Instance Method Details

#handler_nameObject

Public: The name of this handler.

Returns a Symbol.



8
9
10
# File 'lib/rainman/handler.rb', line 8

def handler_name
  @handler_name
end

#parent_klassObject

Public: Get the the handler’s parent_klass.

Returns Rainman::Driver.self



15
16
17
# File 'lib/rainman/handler.rb', line 15

def parent_klass
  @parent_klass
end