lib/fat_table/table.rb in fat_table-0.2.9 vs lib/fat_table/table.rb in fat_table-0.2.11

- old
+ new

@@ -1367,11 +1367,11 @@ # a Formatter to the block to which formatting instructions and footers can # be added by calling methods on it. Since the pipe-separated format is the # default format for Formatter, there is no class PsvFormatter as you might # expect. def to_psv(options = {}) - fmt = Formatter.new(self, options) + fmt = Formatter.new(self, **options) yield fmt if block_given? fmt.output end # :category: Output @@ -1380,11 +1380,11 @@ # to the AoaFormatter. If no block is given, default formatting is applies # to the table's cells. If a block is given, it yields an AoaFormatter to # the block to which formatting instructions and footers can be added by # calling methods on it. def to_aoa(options = {}) - fmt = FatTable::AoaFormatter.new(self, options) + fmt = FatTable::AoaFormatter.new(self, **options) yield fmt if block_given? fmt.output end # :category: Output @@ -1394,11 +1394,11 @@ # values are strings representing the cells of the table. If no block is # given, default formatting is applies to the table's cells. If a block is # given, it yields an AohFormatter to the block to which formatting # instructions and footers can be added by calling methods on it. def to_aoh(options = {}) - fmt = AohFormatter.new(self, options) + fmt = AohFormatter.new(self, **options) yield fmt if block_given? fmt.output end # :category: Output @@ -1407,11 +1407,11 @@ # +options+ on to the LaTeXFormatter. If no block is given, default # formatting applies to the table's cells. If a block is given, it yields a # LaTeXFormatter to the block to which formatting instructions and footers # can be added by calling methods on it. def to_latex(options = {}) - fmt = LaTeXFormatter.new(self, options) + fmt = LaTeXFormatter.new(self, **options) yield fmt if block_given? fmt.output end # :category: Output @@ -1420,11 +1420,11 @@ # the +options+ on to the OrgFormatter. If no block is given, default # formatting applies to the table's cells. If a block is given, it yields a # OrgFormatter to the block to which formatting instructions and footers can # be added by calling methods on it. def to_org(options = {}) - fmt = OrgFormatter.new(self, options) + fmt = OrgFormatter.new(self, **options) yield fmt if block_given? fmt.output end # :category: Output @@ -1433,11 +1433,11 @@ # table, passing the +options+ on to the TermFormatter. If no block is # given, default formatting applies to the table's cells. If a block is # given, it yields a TermFormatter to the block to which formatting # instructions and footers can be added by calling methods on it. def to_term(options = {}) - fmt = TermFormatter.new(self, options) + fmt = TermFormatter.new(self, **options) yield fmt if block_given? fmt.output end # :category: Output @@ -1447,10 +1447,10 @@ # default formatting applies to the table's cells. If a block is given, it # yields a TextFormatter to the block to which formatting instructions and # footers can be added by calling methods on it. # @return [String] def to_text(options = {}) - fmt = TextFormatter.new(self, options) + fmt = TextFormatter.new(self, **options) yield fmt if block_given? fmt.output end end end