Module: Hamlit::Compilers::Attributes
- Extended by:
- Hamlit::Concerns::Included
- Includes:
- NewAttribute, OldAttribute
- Included in:
- Hamlit::Compiler
- Defined in:
- lib/hamlit/compilers/attributes.rb
Constant Summary
Constants included from OldAttribute
OldAttribute::IGNORED_EXPRESSIONS, OldAttribute::NESTABLE_ATTRIBUTES
Constants included from Hamlit::Concerns::Ripperable
Hamlit::Concerns::Ripperable::TYPE_POSITION
Instance Method Summary collapse
Methods included from Hamlit::Concerns::Included
Methods included from OldAttribute
Methods included from Hamlit::Concerns::Ripperable
Methods included from Hamlit::Concerns::Balanceable
#balanced_braces_exist?, #balanced_parens_exist?, #fetch_balanced_braces, #fetch_balanced_parentheses
Methods included from Hamlit::Concerns::AttributeBuilder
Methods included from NewAttribute
Instance Method Details
#on_haml_attrs(*attrs) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/hamlit/compilers/attributes.rb', line 16 def on_haml_attrs(*attrs) attrs = compile_attributes(attrs) attrs = join_ids(attrs) attrs = combine_classes(attrs) attrs = pull_class_first(attrs) [:html, :attrs, *attrs] end |