diff options
| author | Paul Buetow <paul@buetow.org> | 2025-02-14 23:01:42 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-02-14 23:01:42 +0200 |
| commit | 1e3a8819e845c4025cda3e2574ce294e9180907a (patch) | |
| tree | cbb65a890c901cd15c76ef20bd742844820f0729 /lib/dslkeywords/only_when.rb | |
| parent | 2d9685779d260debbc95ab89ba4c2a5b3387190e (diff) | |
test only_when
Diffstat (limited to 'lib/dslkeywords/only_when.rb')
| -rw-r--r-- | lib/dslkeywords/only_when.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dslkeywords/only_when.rb b/lib/dslkeywords/only_when.rb index 82dbc1f..485fd42 100644 --- a/lib/dslkeywords/only_when.rb +++ b/lib/dslkeywords/only_when.rb @@ -5,7 +5,7 @@ module RCM def initialize = @conds = {} def is(arg) = arg - def method_missing(method_name, *args, &block) = @conds[method_name] = args.first + def method_missing(method_name, *args) = @conds[method_name] = args.first def respond_to_missing? = true def met? |
