Class: ODDB::Remote::Text::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/oddb/remote/text/document.rb

Instance Attribute Summary

Attributes inherited from Object

#remote, #source

Instance Method Summary collapse

Methods inherited from Object

delegate, #initialize, #uid

Constructor Details

This class inherits a constructor from ODDB::Remote::Object

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



14
15
16
# File 'lib/oddb/remote/text/document.rb', line 14

def method_missing *args, &block
  @remote.send *args, &block
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/oddb/remote/text/document.rb', line 11

def empty?
  @remote.empty?
end