module Unparser::Adamantium

Allows objects to be made immutable

Original code before vendoring and reduction from: github.com/dkubb/adamantium.

Private Class Methods

included(descendant) click to toggle source
# File lib/unparser/adamantium.rb, line 141
def self.included(descendant)
  descendant.class_eval do
    include InstanceMethods
    extend ModuleMethods
    extend ClassMethods if instance_of?(Class)
  end
end