<commit_before>= respond_to_missing

{<img src="https://secure.travis-ci.org/shuber/respond_to_missing.png"/>}[http://travis-ci.org/shuber/respond_to_missing]
{<img src="https://d25lcipzij17d.cloudfront.net/badge.png?v=0.0.0"/>}[http://rubygems.org/gems/respond_to_missing]
{<img src="https://codeclimate.com/badge.png" />}[https://codeclimate.com/github/shuber/respond_to_missing]

Defines <tt>{Object#respond_to_missing?}[http://www.ruby-doc.org/core/classes/Object.html#M001006]</tt> and patches <tt>{Object#respond_to?}[http://www.ruby-doc.org/core/classes/Object.html#M001005]</tt> unless this functionality has already been implemented (ruby versions 1.9+)


== Installation

  gem install respond_to_missing


== Usage

Define <tt>respond_to_missing?</tt> whenever an object overrides <tt>method_missing</tt>

  class User
    def method_missing(method_name, *args)
      method_name == :test_method ? true : super
    end

    def respond_to_missing?(method_name, include_super)
      method_name == :test_method || super
    end
  end


== Testing

  rake<commit_msg>Bump gem version badge in README [ci skip]<commit_after>= respond_to_missing

{<img src="https://secure.travis-ci.org/shuber/respond_to_missing.png"/>}[http://travis-ci.org/shuber/respond_to_missing]
{<img src="https://d25lcipzij17d.cloudfront.net/badge.png?v=0.0.1"/>}[http://rubygems.org/gems/respond_to_missing]
{<img src="https://codeclimate.com/badge.png" />}[https://codeclimate.com/github/shuber/respond_to_missing]

Defines <tt>{Object#respond_to_missing?}[http://www.ruby-doc.org/core/classes/Object.html#M001006]</tt> and patches <tt>{Object#respond_to?}[http://www.ruby-doc.org/core/classes/Object.html#M001005]</tt> unless this functionality has already been implemented (ruby versions 1.9+)


== Installation

  gem install respond_to_missing


== Usage

Define <tt>respond_to_missing?</tt> whenever an object overrides <tt>method_missing</tt>

  class User
    def method_missing(method_name, *args)
      method_name == :test_method ? true : super
    end

    def respond_to_missing?(method_name, include_super)
      method_name == :test_method || super
    end
  end


== Testing

  rake
{'fraction_non_alphanumeric': 0.15038972948188903, 'fraction_numerical': 0.01925722145804677, 'mean_word_length': 5.061111111111111, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, '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': '1586467', 'n_tokens_mistral': 804, 'n_tokens_neox': 754, 'n_words': 118}