Class: VirtualModule::Builder::ProxyObjectTransmitter
- Inherits:
-
Struct
- Object
- Struct
- VirtualModule::Builder::ProxyObjectTransmitter
- Defined in:
- lib/virtual_module.rb
Instance Attribute Summary collapse
-
#receiver ⇒ Object
Returns the value of attribute receiver.
-
#vmbuilder ⇒ Object
Returns the value of attribute vmbuilder.
Instance Method Summary collapse
Instance Attribute Details
#receiver ⇒ Object
Returns the value of attribute receiver
60 61 62 |
# File 'lib/virtual_module.rb', line 60 def receiver @receiver end |
#vmbuilder ⇒ Object
Returns the value of attribute vmbuilder
60 61 62 |
# File 'lib/virtual_module.rb', line 60 def vmbuilder @vmbuilder end |
Instance Method Details
#convert_to(target_oid) ⇒ Object
61 62 63 64 65 |
# File 'lib/virtual_module.rb', line 61 def convert_to(target_oid) (target_oid == vmbuilder.object_id) ? receiver : ((receiver[0..5] == "\xC1VMOBJ") ? vmbuilder.serialize(receiver[6..-1]) : receiver) end |
#get_index(target_oid) ⇒ Object
66 67 68 |
# File 'lib/virtual_module.rb', line 66 def get_index(target_oid) (target_oid == vmbuilder.object_id && receiver[0..5] == "\xC1VMOBJ") ? receiver[6..-1] : nil end |