Skip to content

Instantly share code, notes, and snippets.

@ess
Created December 1, 2014 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ess/abf0ee353455ba927ac0 to your computer and use it in GitHub Desktop.
Save ess/abf0ee353455ba927ac0 to your computer and use it in GitHub Desktop.
# For those times when I don't want to keep track of what arguments are being
# given to Wisper::Publisher#publish ... the Wisper rspec matchers seem like
# much overkill
class MagicListener
def method_missing(method_sym, *arguments, &block)
[method_sym] + arguments
end
def respond_to?(method_sym, include_private = false)
true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment