No commit activity in last 3 years
No release in over 3 years
Defines Object#respond_to_missing? and patches Object#respond_to? unless this functionality has already been implemented (ruby versions 1.9+)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

respond_to_missing¶ ↑

<img src=“https://secure.travis-ci.org/shuber/respond_to_missing.png”/> <img src=“https://d25lcipzij17d.cloudfront.net/badge.png?v=0.0.1”/> <img src=“https://codeclimate.com/badge.png” /> <img src=“https://cruel-carlota.pagodabox.com/7fcd2a2ed01540dbc9ba52a1af81cace” />

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

Installation¶ ↑

gem install respond_to_missing

Usage¶ ↑

Define respond_to_missing? whenever an object overrides method_missing

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