Sha256: 810e77be2133c45440b7c2a28b3cb0f59b6d1a357b77fde9598769c506b5d596
Contents?: true
Size: 652 Bytes
Versions: 4
Compression:
Stored size: 652 Bytes
Contents
#!/usr/bin/env ruby require "rubygems" require "bundler" Bundler.require :gem_default, :gem_development class Foo attr_accessor :foo class Bar attr_accessor :fool end end class Thing attr_accessor :food end class OneMoreThing attr_accessor :thing end <<-RUBY f1 = Foo.new; nil f2 = Foo.new f2.foo = f1 b = Foo::Bar.new b.fool = f1 t = Thing.new t.food = f1 object_id = f1.object_id Mass.detach(f1){f1 = nil} Mass.gc!(f1) Mass[object_id] rescue nil RUBY puts "Loading development environment (RubyMass #{RubyMass::VERSION})" puts "[0] pry(main)> defined classes Foo, Foo::Bar, Thing and OneMoreThing" Pry.start
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-mass-0.1.3 | script/console |
ruby-mass-0.1.2 | script/console |
ruby-mass-0.1.1 | script/console |
ruby-mass-0.1.0 | script/console |