lib/lookbook/services/code/code_highlighter.rb in lookbook-1.3.3 vs lib/lookbook/services/code/code_highlighter.rb in lookbook-1.3.4
- old
+ new
@@ -9,10 +9,10 @@
@source = source.to_s
@opts = opts
end
def opts
- @opts.is_a?(String) || @opts.is_a?(Symbol) ? {language: @opts} : @opts.to_h
+ (@opts.is_a?(String) || @opts.is_a?(Symbol)) ? {language: @opts} : @opts.to_h
end
def call
coder = HTMLEntities.new
decoded_source = coder.decode(source)