Module: Adamantium::Flat

Defined in:
lib/adamantium.rb

Overview

Defaults to less strict defaults

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(descendant) ⇒ self

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Hook called when module is included

Parameters:

  • descendant (Class, Module)

Returns:

  • (self)


31
32
33
34
35
36
# File 'lib/adamantium.rb', line 31

def self.included(descendant)
  super
  descendant.send(:include, Adamantium)
  descendant.extend(self)
  self
end

Instance Method Details

#freezerFreezer::Flat

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return flat freezer

Returns:



20
21
22
# File 'lib/adamantium.rb', line 20

def freezer
  Freezer::Flat
end