Sha256: 13c019d8039effd0c29c3c62c2ecb18eba8a930ad85ef30031eb2fa61a607466
Contents?: true
Size: 342 Bytes
Versions: 1
Compression:
Stored size: 342 Bytes
Contents
module Rouge class TemplateLexer < RegexLexer def parent return @parent if instance_variable_defined? :@parent @parent = option(:parent) || 'html' if @parent.is_a? String lexer_class = Lexer.find(@parent) @parent = lexer_class.new(self.options) end end start { parent.reset! } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rouge-0.2.0 | lib/rouge/template_lexer.rb |