Advertisement
Guest User

Untitled

a guest
Jul 13th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. [19] pry(main)> class Foo; def x() :X end end
  2. => nil
  3. [20] pry(main)> Foo.freeze
  4. => Foo
  5. [21] pry(main)> class Foo; def y() :Y end end
  6. RuntimeError: can't modify frozen Class
  7. from (pry):20:in `<class:Foo>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement