Skip to content
Browse files

no need for the to_sym

  • Loading branch information...
1 parent 41fcd4c commit bb607f8ab9098caee0c560385f43e014ca8e46da @nakajima committed Dec 16, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/syntaxily.rb
View
2 lib/syntaxily.rb
@@ -11,7 +11,7 @@ module Syntaxily
def self.parse(text)
doc = Nokogiri::HTML.parse(text)
doc.search('pre.code').each do |node|
- lexer = node['rel'].to_sym
+ lexer = node['rel']
lexed = node.text.syntaxify(lexer)
node.replace Nokogiri::HTML.parse(lexed)
end

0 comments on commit bb607f8

Please sign in to comment.
Something went wrong with that request. Please try again.