Module: Lycra::Document::Proxy::BaseProxy
Instance Attribute Summary collapse
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object
360
361
362
363
|
# File 'lib/lycra/document/proxy.rb', line 360
def method_missing(meth, *args, &block)
return target.send(meth, *args, &block) if target.respond_to?(meth)
super
end
|
Instance Attribute Details
#target ⇒ Object
Returns the value of attribute target.
346
347
348
|
# File 'lib/lycra/document/proxy.rb', line 346
def target
@target
end
|
Instance Method Details
#client ⇒ Object
356
357
358
|
# File 'lib/lycra/document/proxy.rb', line 356
def client
@client ||= Lycra.client
end
|
#client=(client) ⇒ Object
352
353
354
|
# File 'lib/lycra/document/proxy.rb', line 352
def client=(client)
@client = client
end
|
#initialize(target) ⇒ Object
348
349
350
|
# File 'lib/lycra/document/proxy.rb', line 348
def initialize(target)
@target = target
end
|
#respond_to_missing?(meth, priv = false) ⇒ Boolean
365
366
367
|
# File 'lib/lycra/document/proxy.rb', line 365
def respond_to_missing?(meth, priv=false)
target.respond_to?(meth, priv) || super
end
|