enum CSS::TokenType
Defined in:
html5/css/lexer.crEnum Members
-
Astr =
0
-
Bar =
1
-
Colon =
2
-
Comma =
3
-
Dimension =
4
-
Dot =
5
-
Function =
6
-
Hash =
7
-
Ident =
8
-
LeftBrace =
9
-
Match =
10
-
MatchDash =
11
-
MatchIncludes =
12
-
MatchPrefix =
13
-
MatchSubStr =
14
-
MatchSuffix =
15
-
Not =
16
-
Number =
17
-
Plus =
18
-
RightBrace =
19
-
RightParen =
20
-
Space =
21
-
String =
22
-
Sub =
23
-
Greater =
24
-
Tilde =
25
-
Comment =
26
-
Error =
27
-
EOF =
28
Class Method Summary
-
.from(c : Char)
not included ':' may be ':not(', must check that first '.' may be the beginning of a number
Instance Method Summary
- #astr?
- #bar?
- #colon?
- #comma?
- #comment?
- #dimension?
- #dot?
- #eof?
- #error?
- #function?
- #greater?
- #hash?
- #ident?
- #left_brace?
- #match?
- #match_dash?
- #match_includes?
- #match_prefix?
- #match_sub_str?
- #match_suffix?
- #not?
- #number?
- #plus?
- #right_brace?
- #right_paren?
- #space?
- #string?
- #sub?
- #tilde?
-
#to_s
Returns a
String
representation of this enum member.
Class Method Detail
def self.from(c : Char)
#
not included ':' may be ':not(', must check that first '.' may be the beginning of a number
Instance Method Detail
def to_s
#
Description copied from struct Enum
Returns a String
representation of this enum member.
In the case of regular enums, this is just the name of the member.
In the case of flag enums, it's the names joined by vertical bars, or "None",
if the value is zero.
If an enum's value doesn't match a member's value, the raw value is returned as a string.
Color::Red.to_s # => "Red"
IOMode::None.to_s # => "None"
(IOMode::Read | IOMode::Write).to_s # => "Read | Write"
Color.new(10).to_s # => "10"