Created
December 1, 2014 01:53
-
-
Save ess/abf0ee353455ba927ac0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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