summaryrefslogtreecommitdiff
path: root/lib/coderay/duo.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-10-15 22:51:39 +0000
committermurphy <murphy@rubychan.de>2010-10-15 22:51:39 +0000
commit4aabd0a914459291a3a38ab769b4554d2a2a6dc5 (patch)
tree45cc3785146ba29db54312c8c45053dde4639906 /lib/coderay/duo.rb
parent6d98be4440b773e1fa311ee4fc621d63f29b41dc (diff)
downloadcoderay-4aabd0a914459291a3a38ab769b4554d2a2a6dc5.tar.gz
Code cleanups in Duo.
Diffstat (limited to 'lib/coderay/duo.rb')
-rw-r--r--lib/coderay/duo.rb2
1 files changed, 1 insertions, 1 deletions
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