Sha256: 71c16eb4c06c924dc1825791cd1a7fffef097fb3d637e532318b477c5f50cf6c
Contents?: true
Size: 278 Bytes
Versions: 2
Compression:
Stored size: 278 Bytes
Contents
# # the special '__' method accesses an object's Pervasives::Proxy # require 'pervasives' class BlankSlate instance_methods.each { |m| undef_method m unless m =~ /^__/ } def object_id() 42 end end bs = BlankSlate.new p bs.object_id p __(bs){ object_id }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pervasives-1.0.0 | samples/c.rb |
pervasives-0.0.1 | samples/c.rb |