class Rouge::Lexer
def tag(t=nil)
MyLexer.tag # => 'foo'
end
tag 'foo'
class MyLexer < Lexer
@example
Used to specify or get the canonical name of this lexer class.
def tag(t=nil) return @tag if t.nil? @tag = t.to_s Lexer.register(@tag, self) end
def tag(t=nil) return @tag if t.nil? @tag = t.to_s Lexer.register(@tag, self) end