A
Ari Brown
Hey all,
I'm writing a quick DSL, and in it, I end up having to use return
false unless {} quite a bunch.
Since I still need everything outside of the return false's, Stefan
<apeiros>'s Stepper code is of no use, although it is still quite
awesome.
Is there a way to alias it from, say:
return false unless { klass.method? }
to:
rule { klass.method? }
Thanks,
Ari
--------------------------------------------|
If you're not living on the edge,
then you're just wasting space.
I'm writing a quick DSL, and in it, I end up having to use return
false unless {} quite a bunch.
Since I still need everything outside of the return false's, Stefan
<apeiros>'s Stepper code is of no use, although it is still quite
awesome.
Is there a way to alias it from, say:
return false unless { klass.method? }
to:
rule { klass.method? }
Thanks,
Ari
--------------------------------------------|
If you're not living on the edge,
then you're just wasting space.