class Rouge::Lexers::Apache
Public Class Methods
keywords()
click to toggle source
self-modifying method that loads the keywords file
# File lib/rouge/lexers/apache.rb, line 15 def self.keywords load File.join(Lexers::BASE_DIR, 'apache/keywords.rb') keywords end
Public Instance Methods
name_for_token(token, kwtype, tktype)
click to toggle source
# File lib/rouge/lexers/apache.rb, line 20 def name_for_token(token, kwtype, tktype) if self.class.keywords[kwtype].include? token tktype else Text end end