Module: Uinit::Memoizable

Defined in:
lib/uinit/memoizable.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
# File 'lib/uinit/memoizable.rb', line 7

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#memo_unset(method_sym) ⇒ Object



45
46
47
# File 'lib/uinit/memoizable.rb', line 45

def memo_unset(method_sym)
  remove_instance_variable(self.class.memo_variable_name(method_sym))
end