diff options
Diffstat (limited to 'storage/mroonga/vendor/groonga/lib/mrb/scripts/command_input.rb')
-rw-r--r-- | storage/mroonga/vendor/groonga/lib/mrb/scripts/command_input.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/storage/mroonga/vendor/groonga/lib/mrb/scripts/command_input.rb b/storage/mroonga/vendor/groonga/lib/mrb/scripts/command_input.rb new file mode 100644 index 00000000000..779edb47911 --- /dev/null +++ b/storage/mroonga/vendor/groonga/lib/mrb/scripts/command_input.rb @@ -0,0 +1,15 @@ +module Groonga + class CommandInput + include Enumerable + + def each + args = arguments + arg = Record.new(args, nil) + args.each do |id| + arg.id = id + key = arg.key + yield(key, self[key]) + end + end + end +end |