You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we could make this work. At least it makes sense to work that way, if methods are first looked up in the with scope. However, the ends_with?('=') condition in your example will never be true because doing a = 1 is a local variable assignment, and then if you do self.a = 1, self is not bound to the with scope. That is, with ... yield is not like Ruby's instance_eval.
i am trying to build dsl: http://play.crystal-lang.org/#/r/jzg
is it possible to make
with self yield
understand method_missing?something like ruby instance_eval(block)
The text was updated successfully, but these errors were encountered: