<commit_before>multidispatch
==================

Very basic multidispatch in **Ruby** using natural syntax.
Currently supports overloads by count of mandatory parameters.
So, it solves only one problem. Converts the following code:

```ruby
class BoilerplateClass
  def foo(a = nil, b = nil)
    unless a || b
      # do action 1
      # ...
    end
    if a && !b
      # do action 2
      # ...
    end
    if a && b
      # do action 3
      # ...
    end
  end
end
```

to this nice one:

```ruby
class MultidispatchClass
  include Multidispatch

  def foo<commit_msg>Travis CI badge for README added<commit_after>multidispatch
==================

[![Build Status](https://travis-ci.org/noomorph/multidispatch.png)](https://travis-ci.org/noomorph/multidispatch)

Very basic multidispatch in **Ruby** using natural syntax.
Currently supports overloads by count of mandatory parameters.
So, it solves only one problem. Converts the following code:

```ruby
class BoilerplateClass
  def foo(a = nil, b = nil)
    unless a || b
      # do action 1
      # ...
    end
    if a && !b
      # do action 2
      # ...
    end
    if a && b
      # do action 3
      # ...
    end
  end
end
```

to this nice one:

```ruby
class MultidispatchClass
  include Multidispatch

  def foo
{'fraction_non_alphanumeric': 0.12363067292644757, 'fraction_numerical': 0.004694835680751174, 'mean_word_length': 2.5527777777777776, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6354959', 'n_tokens_mistral': 430, 'n_tokens_neox': 397, 'n_words': 144}