From 4aabd0a914459291a3a38ab769b4554d2a2a6dc5 Mon Sep 17 00:00:00 2001 From: murphy Date: Fri, 15 Oct 2010 22:51:39 +0000 Subject: Code cleanups in Duo. --- lib/coderay/duo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay') diff --git a/lib/coderay/duo.rb b/lib/coderay/duo.rb index 55d1277..171768c 100644 --- a/lib/coderay/duo.rb +++ b/lib/coderay/duo.rb @@ -35,7 +35,7 @@ module CodeRay # The options are forwarded to scanner and encoder # (see CodeRay.get_scanner_options). def initialize lang = nil, format = nil, options = {} - if format == nil and lang.is_a? Hash and lang.size == 1 + if format.nil? && lang.is_a?(Hash) && lang.size == 1 @lang = lang.keys.first @format = lang[@lang] else -- cgit v1.2.1