Module: Jade::Formatter::CurriedConstructor
- Extended by:
- CurriedConstructor, Helper
- Included in:
- CurriedConstructor
- Defined in:
- lib/jade/formatter/leaves.rb
Instance Method Summary collapse
Methods included from Helper
and_indent, dispatch_for, format_delimited, format_exposing, format_leading_comments, format_node, format_pattern, format_trailing_comment, format_type, format_type_atom, leading_comment_blocks, too_long?
Instance Method Details
#format(node, indent:, source:) ⇒ Object
28 29 30 |
# File 'lib/jade/formatter/leaves.rb', line 28 def format(node, indent:, source:) "^#{node.name}".then(&and_indent(indent)) end |