Sha256: 64943cfb95e9eaa646559c09a6515283ba1aab5396fe3848e589f9ae6e1ea5f8

Contents?: true

Size: 339 Bytes

Versions: 4

Compression:

Stored size: 339 Bytes

Contents

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 # module ClassMethods

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adamantium-0.0.6 lib/adamantium/class_methods.rb
adamantium-0.0.5 lib/adamantium/class_methods.rb
adamantium-0.0.4 lib/adamantium/class_methods.rb
adamantium-0.0.3 lib/adamantium/class_methods.rb