Class: Groonga::TableDumper

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga/dumper.rb

Instance Method Summary collapse

Constructor Details

#initialize(table, options = {}) ⇒ TableDumper

Returns a new instance of TableDumper.



613
614
615
616
617
618
619
620
# File 'lib/groonga/dumper.rb', line 613

def initialize(table, options={})
  @table = table
  @options = options
  @output = @options[:output]
  @have_output = !@output.nil?
  @output ||= Dumper.default_output
  @error_output = @options[:error_output]
end

Instance Method Details

#dumpObject



622
623
624
625
626
627
628
629
# File 'lib/groonga/dumper.rb', line 622

def dump
  dump_load_command
  if @have_output
    nil
  else
    @output.string
  end
end