class TrickSerial::Serializer::ProxySwizzlingIvar
Public Class Methods
new(owner, name, value)
click to toggle source
# File lib/trick_serial/serializer.rb, line 359 def initialize owner, name, value @owner, @name, @value = owner, name, value end
Public Instance Methods
class()
click to toggle source
# File lib/trick_serial/serializer.rb, line 343 def class method_missing :class end
Also aliased as: _proxy_class
id()
click to toggle source
# File lib/trick_serial/serializer.rb, line 355 def id method_missing :id end
Also aliased as: _proxy_id
method_missing(sel, *args, &blk)
click to toggle source
# File lib/trick_serial/serializer.rb, line 364 def method_missing sel, *args, &blk if @owner if ObjectProxy === @value @value = @value.object end @owner.instance_variable_set(@name, @value) @owner = @name = nil end @value.__send__(sel, *args, &blk) end
object_id()
click to toggle source
# File lib/trick_serial/serializer.rb, line 348 def object_id method_missing :object_id end
Also aliased as: _proxy_object_id