<commit_before># Memor

## USAGE
This lib has one utility method called **memor** which takes *binding* as an
 argument, see the following example:

``` ruby
  require 'memor'

  class Foo
    include Memor

    def slow_method1
      memor binding do
        # slow stuff
      end
    end

    def slow_method2(a, b)
      memor binding do
        # slow stuff
      end
    end

    def slow_method3(a, *args)
      memor binding do
        # slow stuff
      end
    end
  end
```
<commit_msg>add new usage to readme<commit_after># Memor

## USAGE
This lib has one utility method called **memor** which takes *binding* as an
 argument, see the following example:

``` ruby
  require 'memor'

  class Foo
    include Memor

    attr_accessor :age

    def slow_method1
      memor binding do
        # slow stuff
      end
    end

    def slow_method2(a, b)
      memor binding do
        # slow stuff
      end
    end

    def slow_method3(a, *args)
      memor binding do
        # slow stuff
      end
    end

    def double_age
      memor binding, :age do
        age * 2
      end
    end

  end

  foo = Foo.new

  foo.age = 2
  foo.double_age # 4

  foo.age = 3
  foo.double_age # 6
```

{'fraction_non_alphanumeric': 0.0649458784346378, 'fraction_numerical': 0.009159034138218152, 'mean_word_length': 1.8894230769230769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6450522', 'n_tokens_mistral': 404, 'n_tokens_neox': 382, 'n_words': 142}