Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [19] pry(main)> class Foo; def x() :X end end
- => nil
- [20] pry(main)> Foo.freeze
- => Foo
- [21] pry(main)> class Foo; def y() :Y end end
- RuntimeError: can't modify frozen Class
- from (pry):20:in `<class:Foo>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement