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
69 70 71 72 |
# File 'lib/rouge/token.rb', line 69 def self.token(name, shortname, &b) tok = Token.make_token(name, shortname, &b) const_set(name, tok) end |