Module: Adamantium::ClassMethods

Defined in:
lib/adamantium/class_methods.rb

Overview

Methods mixed in to adamantium classes

Instance Method Summary collapse

Instance Method Details

#newObject

Instantiate a new frozen object

Examples:

object = AdamantiumClass.new  # object is frozen

Returns:

  • (Object)


16
17
18
# File 'lib/adamantium/class_methods.rb', line 16

def new(*)
  freezer.freeze(super)
end