Skip to content

Instantly share code, notes, and snippets.

@telent telent/landmine.rb
Created Sep 21, 2017

Embed
What would you like to do?
class Landmine
def initialize(replaces)
@replaces = replaces
end
def method_missing(n, *args)
raise "#{@replaces} landmine triggered by method #{n}: #{args.join ','}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.