Class: Tailwindcss::Compiler::FileClassesExtractor
- Inherits:
-
Object
- Object
- Tailwindcss::Compiler::FileClassesExtractor
- Defined in:
- lib/tailwindcss/compiler/file_classes_extractor.rb
Instance Method Summary collapse
Instance Method Details
#call(file_path:) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/tailwindcss/compiler/file_classes_extractor.rb', line 7 def call(file_path:) ast = file_parser.call(file_path:) return unless ast hash_args = hash_args_extractor.call(ast:) hash_args.map { class_list_builder.call(**_1) }.flatten.compact end |