summaryrefslogtreecommitdiffstats
path: root/storage/mroonga/vendor/groonga/lib/mrb/scripts/command_input.rb
blob: 779edb479112dbc88dc49094002a958eda6aaada (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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