Skip to content

Commit

Permalink
humanized Kernel#extract
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Andreev committed May 1, 2008
1 parent 93d1066 commit de56854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/strokedb/core_ext/kernel.rb
Expand Up @@ -31,7 +31,7 @@ def extract(*template_and_args)

args.each do |a|
unless while t = template_and_args.shift
t === a and result << a and break 1 or result << nil
t === a and result.push a and break 1 or result.push nil
end
raise ArgumentError, "Unexpected argument #{a.inspect} is passed!"
end
Expand Down

0 comments on commit de56854

Please sign in to comment.