class Rouge::Lexer
def with(opts={})
Returns a new lexer with the given options set. Useful for e.g. setting
def with(opts={}) new_options = @options.dup opts.each { |k, v| new_options[k.to_s] = v } self.class.new(new_options) end
def with(opts={}) new_options = @options.dup opts.each { |k, v| new_options[k.to_s] = v } self.class.new(new_options) end