Module: Rouge::Token::Tokens
- Included in:
- Lexer, Rouge::Theme
- Defined in:
- lib/rouge/token.rb
Constant Summary collapse
- Num =
convenience
Literal::Number
- Str =
Literal::String
Class Method Summary collapse
Class Method Details
.token(name, shortname, &b) ⇒ Object
70 71 72 73 |
# File 'lib/rouge/token.rb', line 70 def self.token(name, shortname, &b) tok = Token.make_token(name, shortname, &b) const_set(name, tok) end |