Skip to content

Using `#define_method` for fewer surprises #3

Merged
merged 2 commits into from May 14, 2012

3 participants

@jneen
jneen commented May 11, 2012

Hi there!

This patch uses #define_method under the covers, so that actions are inheritable as methods. It's possible that it performs faster, but honestly I just like the way the code looks a little better :). Up to you.

Cheers,
--Jay

@statianzo

why not just require defining a method named "action"? Using "def" isn't that painful and would keep it looking like regular ruby.

@jneen
jneen commented May 11, 2012

Good idea - it's possible to support both, I think.

@karmajunkie karmajunkie merged commit 20dde0b into karmajunkie:master May 14, 2012
@statianzo statianzo referenced this pull request Jun 11, 2012
Closed

why the DSL? #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.