test_ruby_syntax() — tailwindcss Function Reference
Architecture documentation for the test_ruby_syntax() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 22bb7fc8_fea1_0a3c_51c0_c5c4fdfa9d91["test_ruby_syntax()"] eb5f3ab1_80da_abe4_f35c_a91e8e409b69["mod.rs"] 22bb7fc8_fea1_0a3c_51c0_c5c4fdfa9d91 -->|defined in| eb5f3ab1_80da_abe4_f35c_a91e8e409b69 80ff0a5a_eb98_52e8_b801_bcc7263c7a89["assert_extract_sorted_candidates()"] 22bb7fc8_fea1_0a3c_51c0_c5c4fdfa9d91 -->|calls| 80ff0a5a_eb98_52e8_b801_bcc7263c7a89 ddd570de_fcb0_6f2b_bb73_ed27e62391cc["pre_process_input()"] 22bb7fc8_fea1_0a3c_51c0_c5c4fdfa9d91 -->|calls| ddd570de_fcb0_6f2b_bb73_ed27e62391cc style 22bb7fc8_fea1_0a3c_51c0_c5c4fdfa9d91 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/mod.rs lines 573–621
fn test_ruby_syntax() {
for (input, expected) in [
(r#"%w[flex]"#, vec!["flex"]),
(r#"%w[flex items-center]"#, vec!["flex", "items-center"]),
(r#"%w[[color:red]]"#, vec!["[color:red]"]),
// See: https://github.com/tailwindlabs/tailwindcss/issues/13778
(
r#"def call = tag.span "Foo", class: %w[rounded-full h-0.75 w-0.75]"#,
vec![
"def",
"call",
"span",
"class",
"rounded-full",
"h-0.75",
"w-0.75",
],
),
(
r#"def call = tag.span "Foo", class: %w[rounded-full w-0.75 h-0.75]"#,
vec![
"def",
"call",
"span",
"class",
"rounded-full",
"h-0.75",
"w-0.75",
],
),
(
r#"def call = tag.span "Foo", class: %w[w-0.75 h-0.75 rounded-full]"#,
vec![
"def",
"call",
"span",
"class",
"rounded-full",
"h-0.75",
"w-0.75",
],
),
// Other similar syntaxes
(r#"%w[flex]"#, vec!["flex"]),
(r#"%w(flex)"#, vec!["flex"]),
] {
assert_extract_sorted_candidates(&pre_process_input(input, "rb"), expected);
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_ruby_syntax() do?
test_ruby_syntax() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/mod.rs.
Where is test_ruby_syntax() defined?
test_ruby_syntax() is defined in crates/oxide/src/extractor/mod.rs at line 573.
What does test_ruby_syntax() call?
test_ruby_syntax() calls 2 function(s): assert_extract_sorted_candidates, pre_process_input.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free