Module: Hamster::Immutable

Included in:
Deque, Hash, Set, SortedSet, Vector
Defined in:
lib/hamster/immutable.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, MemoizeMethods

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object


4
5
6
7
8
9
# File 'lib/hamster/immutable.rb', line 4

def self.included(klass)
  klass.extend(ClassMethods)
  klass.instance_eval do
    include InstanceMethods
  end
end