Class: Siba::SibaKernel
- Inherits:
-
Object
show all
- Defined in:
- lib/siba/siba_kernel.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/siba/siba_kernel.rb', line 6
def method_missing(meth, *args, &block)
if Kernel.respond_to? meth
Kernel.send meth, *args, &block
else
super
end
end
|
Instance Method Details
#respond_to?(meth) ⇒ Boolean
14
15
16
17
18
19
20
|
# File 'lib/siba/siba_kernel.rb', line 14
def respond_to?(meth)
if Kernel.respond_to? meth
true
else
super
end
end
|