Project

suicide

0.0
No commit activity in last 3 years
No release in over 3 years
Instead of doing something stupid like raising NoMethodError, let's find the first object that responds to what you called.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Suicide

When method missing is called, it searches object space for the first object that responds. Partially inspired from Suicide Linux(http://qntm.org/suicide)

Installation

gem install suicide

Usage require 'rubygems' require 'suicide'

class Foo
  def baz
    puts 'omg wtf'
  end
end

class Bar
end

Foo.new
Bar.new.baz

Author

Ethan Gunderson ethan@ethangunderson.com