diff options
Diffstat (limited to 'lib/coderay/helpers')
-rw-r--r-- | lib/coderay/helpers/file_type.rb | 2 | ||||
-rw-r--r-- | lib/coderay/helpers/plugin.rb | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/coderay/helpers/file_type.rb b/lib/coderay/helpers/file_type.rb index f7c5f7d..e955b9d 100644 --- a/lib/coderay/helpers/file_type.rb +++ b/lib/coderay/helpers/file_type.rb @@ -115,7 +115,7 @@ end if $0 == __FILE__ $VERBOSE = true - eval DATA.read, nil, $0, __LINE__+4 + eval DATA.read, nil, $0, __LINE__ + 4 end __END__ diff --git a/lib/coderay/helpers/plugin.rb b/lib/coderay/helpers/plugin.rb index e1a945f..d03dcfb 100644 --- a/lib/coderay/helpers/plugin.rb +++ b/lib/coderay/helpers/plugin.rb @@ -135,9 +135,13 @@ module PluginHost # map :navy => :dark_blue # default :gray # end - def default id - id = validate_id id - plugin_hash[nil] = id + def default id = nil + if id + id = validate_id id + plugin_hash[nil] = id + else + plugin_hash[nil] + end end # Every plugin must register itself for one or more |