Created
September 24, 2013 00:01
-
-
Save nddrylliog/6678664 to your computer and use it in GitHub Desktop.
beautiful
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ irb | |
rubinius-2.1.0.n266 :001 > a = Object.new | |
=> #<Object:0x3ce0> | |
rubinius-2.1.0.n266 :002 > a.frozen? | |
=> false | |
rubinius-2.1.0.n266 :003 > a.freeze | |
=> #<Object:0x3ce0> | |
rubinius-2.1.0.n266 :004 > a.frozen? | |
=> true | |
rubinius-2.1.0.n266 :005 > a.taint | |
RuntimeError: can't modify frozen object | |
from (irb):5 | |
from kernel/common/block_environment.rb:53:in `call_on_instance' | |
from kernel/common/eval.rb:176:in `eval' | |
from kernel/common/kernel.rb:440:in `loop' | |
from kernel/bootstrap/proc.rb:20:in `call' | |
from kernel/common/throw_catch.rb:30:in `catch' | |
from kernel/common/throw_catch.rb:8:in `register' | |
from kernel/common/throw_catch.rb:29:in `catch' | |
from kernel/bootstrap/proc.rb:20:in `call' | |
from kernel/common/throw_catch.rb:30:in `catch' | |
from kernel/common/throw_catch.rb:8:in `register' | |
from kernel/common/throw_catch.rb:29:in `catch' | |
from kernel/delta/codeloader.rb:66:in `load_script' | |
from kernel/delta/codeloader.rb:109:in `load_script' | |
from kernel/loader.rb:643:in `script' | |
from kernel/loader.rb:834:in `main' | |
rubinius-2.1.0.n266 :006 > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment