Module: BinaryParser::Memorize

Defined in:
lib/binary_parser/general_class/memorize.rb

Defined Under Namespace

Modules: Extension

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



31
32
33
34
# File 'lib/binary_parser/general_class/memorize.rb', line 31

def self.included(klass)
  klass.extend Extension
  klass.memorize_methods = @method_names
end

.one_arg_method(*method_names) ⇒ Object



26
27
28
29
# File 'lib/binary_parser/general_class/memorize.rb', line 26

def self.one_arg_method(*method_names)
  @method_names = method_names
  return self
end