Module: Rdomino::DomObject

Included in:
Agent, Database, DatabaseDirectory, Daterange, Datetime, Document, DocumentCollection, Item, RichtextItem, View
Defined in:
lib/rdomino/1modules.rb

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)
  # puts "#{@obj}.send #{m} #{args.inspect}"
  @obj.__send__(m,*args)
end

Instance Method Details

#empty?Boolean

Returns:

  • (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

#objObject



10
11
12
# File 'lib/rdomino/1modules.rb', line 10

def obj
  @obj
end