balwantk/state_machine — comment on commit 09a0a5e109cfcfc9387528286dcaf72262a0e063
File:  line 0
By obrie:

A few things...

- Can we revert changes to the spacing throughout this method?
- Use "||" instead of "or" -- that's the convention used throughout the library
- `method_defined?` also checks protected instance methods, so no need to call `protected_method_defined?(method)`
- Let's move the arity check to the if conditional so that there are only 2 cases: if the method is defined and the arity is 0, call the method without arguments... otherwise, call the argument with all arguments.