Module: Jade::Formatter::ImplementationFunction
- Extended by:
- Helper, ImplementationFunction
- Included in:
- ImplementationFunction
- Defined in:
- lib/jade/formatter/declarations.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, too_long?
Instance Method Details
#format(node, indent:, source:) ⇒ Object
171 172 173 174 175 |
# File 'lib/jade/formatter/declarations.rb', line 171 def format(node, indent:, source:) node => AST::ImplementationFunction(name:, fn:) "#{name}: #{format_node(fn, source:)}".then(&and_indent(indent)) end |