diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2017-01-15 18:21:06 +1300 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2017-01-15 18:21:06 +1300 |
commit | 548e2d0aea6b4c18a2f3e8203241fcaedb10bc8d (patch) | |
tree | 2317de547ec2e7462d5eac0405f1ab8e6de7208b | |
parent | 26f915fb56759530183e6bddb6f7a0bb84a5d0ec (diff) | |
download | coderay-548e2d0aea6b4c18a2f3e8203241fcaedb10bc8d.tar.gz |
default set(:flag) to true
-rw-r--r-- | lib/coderay/rule_based_scanner.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/rule_based_scanner.rb b/lib/coderay/rule_based_scanner.rb index 56edcfc..0eb9222 100644 --- a/lib/coderay/rule_based_scanner.rb +++ b/lib/coderay/rule_based_scanner.rb @@ -253,7 +253,7 @@ module CodeRay def set flag, value = nil, &callback variables << flag - ValueSetter.new [flag], value || callback + ValueSetter.new [flag], value || callback || true end def unset *flags @@ -375,4 +375,4 @@ module CodeRay end end -end
\ No newline at end of file +end |