Class: Ame::Help::Delegate
- Inherits:
-
Object
- Object
- Ame::Help::Delegate
- Defined in:
- lib/ame-1.0/help/delegate.rb
Overview
Delegates help output requests to another help output.
Instance Method Summary collapse
- #dispatch(method, klass) ⇒ Object
-
#initialize(help) ⇒ Delegate
constructor
A new instance of Delegate.
- #method(method) ⇒ Object
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 |