Class: Groonga::TableDumper
- Inherits:
-
Object
- Object
- Groonga::TableDumper
- Defined in:
- lib/groonga/dumper.rb
Instance Method Summary collapse
- #dump ⇒ Object
-
#initialize(table, options = {}) ⇒ TableDumper
constructor
A new instance of TableDumper.
Constructor Details
#initialize(table, options = {}) ⇒ TableDumper
Returns a new instance of TableDumper.
635 636 637 638 639 640 641 642 |
# File 'lib/groonga/dumper.rb', line 635 def initialize(table, ={}) @table = table @options = @output = @options[:output] @have_output = !@output.nil? @output ||= Dumper.default_output @error_output = @options[:error_output] end |
Instance Method Details
#dump ⇒ Object
644 645 646 647 648 649 650 651 |
# File 'lib/groonga/dumper.rb', line 644 def dump dump_load_command if @have_output nil else @output.string end end |