Module: Lemo::Ormo

Includes:
MemoedMethods
Defined in:
lib/lemo/ormo.rb

Overview

simple replacement for ||= (y’know or-or-equals) in others words stores values as plain old @name, and nil means same as does-not-exist

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Methods included from MemoedMethods

#_clear_memos, #_memoed_methods

Class Method Details

.included(other_module) ⇒ Object

hook in class methods on include



55
56
57
# File 'lib/lemo/ormo.rb', line 55

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