New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macro 'method_missing' expects 1 argument (call) #7104
Comments
Maybe fixing class Foo
macro method_missing(call)
{% raise "Method #{call.name} missing at #{call.filename}:#{call.line_number}" %}
end
end
Foo.new.bar would be good enough |
@jhass nope, it returns @vladfaust there's a mistake in the code you've posted, |
That's my point, maybe fixing the |
@Sija, fixed, thanks. Also Is it possible to somehow print the call line? E.g. some_complex_call(Foo.new.bar)
^~~~ |
@vladfaust that would be a job for |
I'd like this code to work (https://carc.in/#/r/5lun):
To display the place from there the call occurred.
It would be even better if I could display the caller line in that macro (i.e.
line: Foo.bar
)The text was updated successfully, but these errors were encountered: