Class: Ame::Help::Delegate

Inherits:
Object
  • Object
show all
Defined in:
lib/ame-1.0/help/delegate.rb

Overview

Delegates help output requests to another help output.

Instance Method Summary collapse

Constructor Details

#initialize(help) ⇒ Delegate

Returns a new instance of Delegate.



6
7
8
# File 'lib/ame-1.0/help/delegate.rb', line 6

def initialize(help)
  @help = help
end

Instance Method Details

#dispatch(method, klass) ⇒ Object



10
11
12
13
# File 'lib/ame-1.0/help/delegate.rb', line 10

def dispatch(method, klass)
  @help.dispatch method, klass
  self
end

#method(method) ⇒ Object



15
16
17
18
# File 'lib/ame-1.0/help/delegate.rb', line 15

def method(method)
  @help.method method
  self
end