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.
674 675 676 677 678 679 680 681 682 |
# File 'lib/groonga/dumper.rb', line 674 def initialize(table, ={}) @table = table @options = @output = @options[:output] @have_output = !@output.nil? @output ||= Dumper.default_output @error_output = @options[:error_output] @max_records = @options[:max_records] end |
Instance Method Details
#dump ⇒ Object
684 685 686 687 688 689 690 691 |
# File 'lib/groonga/dumper.rb', line 684 def dump dump_load_command if @have_output nil else @output.string end end |