Skip to content

Instantly share code, notes, and snippets.

@jfirebaugh
Created March 15, 2012 22:07
Show Gist options
  • Select an option

  • Save jfirebaugh/2047298 to your computer and use it in GitHub Desktop.

Select an option

Save jfirebaugh/2047298 to your computer and use it in GitHub Desktop.
>> class << Object.new.freeze
>> puts "ohai"
>> end
RuntimeError: can't modify frozen object
from kernel/delta/rubinius.rb:130:in `add_method'
from kernel/delta/rubinius.rb:190:in `attach_method'
from (irb):32
from kernel/common/block_environment.rb:75:in `call_on_instance'
from kernel/common/eval.rb:72:in `eval'
from kernel/common/kernel19.rb:44:in `loop'
from kernel/common/throw_catch19.rb:8:in `catch'
from kernel/common/throw_catch.rb:10:in `register'
from kernel/common/throw_catch19.rb:7:in `catch'
from kernel/common/throw_catch19.rb:8:in `catch'
from kernel/common/throw_catch.rb:10:in `register'
from kernel/common/throw_catch19.rb:7:in `catch'
from kernel/delta/codeloader.rb:67:in `load_script'
from kernel/delta/codeloader.rb:109:in `load_script'
from kernel/loader.rb:632:in `script'
from kernel/loader.rb:836:in `main'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment