Module: Rasti::App::Delegable
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object
19
20
21
22
23
24
25
|
# File 'lib/rasti/app/delegable.rb', line 19
def method_missing(method_name, *args, &block)
if delegated_method? method_name
call_delegated_method method_name, *args, &block
else
super
end
end
|
Instance Method Details
#methods(*args) ⇒ Object
5
6
7
|
# File 'lib/rasti/app/delegable.rb', line 5
def methods(*args)
delegated_methods | super
end
|
#public_methods(*args) ⇒ Object
9
10
11
|
# File 'lib/rasti/app/delegable.rb', line 9
def public_methods(*args)
delegated_methods | super
end
|