dkubb/adamantium

View on GitHub
lib/adamantium/class_methods.rb

Summary

Maintainability
A
0 mins
Test Coverage
# encoding: utf-8

module Adamantium

  # Methods mixed in to adamantium classes
  module ClassMethods

    # Instantiate a new frozen object
    #
    # @example
    #   object = AdamantiumClass.new  # object is frozen
    #
    # @return [Object]
    #
    # @api public
    def new(*)
      freezer.freeze(super)
    end

  end # ClassMethods
end # Adamantium