Skip to content

Instantly share code, notes, and snippets.

@iNecas
Created October 16, 2014 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iNecas/4ba38552d6dc666b766f to your computer and use it in GitHub Desktop.
Save iNecas/4ba38552d6dc666b766f to your computer and use it in GitHub Desktop.
freeze
class Hell
attr_accessor :temperature
end
hell = Hell.new
hell.temperature = 100
hell.freeze
hell.temperature = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment