Module: Rdomino::DomObject
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args) ⇒ Object
5
6
7
8
|
# File 'lib/rdomino/1modules.rb', line 5
def method_missing(m,*args)
@obj.__send__(m,*args)
end
|
Instance Method Details
#empty? ⇒ Boolean
14
15
16
|
# File 'lib/rdomino/1modules.rb', line 14
def empty?
@obj.nil?
end
|
#initialize(obj) ⇒ Object
18
19
20
|
# File 'lib/rdomino/1modules.rb', line 18
def initialize(obj)
@obj = obj
end
|
#obj ⇒ Object
10
11
12
|
# File 'lib/rdomino/1modules.rb', line 10
def obj
@obj
end
|