lib/rouge/formatter.rb in rouge-3.26.0 vs lib/rouge/formatter.rb in rouge-3.26.1

- old
+ new

@@ -40,11 +40,11 @@ @escape_enabled = false Thread.current[:'rouge/with-escape'] = false end # Format a token stream. Delegates to {#format}. - def self.format(tokens, *a, &b) - new(*a).format(tokens, &b) + def self.format(tokens, *args, **kwargs, &b) + new(*args, **kwargs).format(tokens, &b) end def initialize(opts={}) # pass end