Module: Jade::Formatter::RecordAccess

Extended by:
Helper, RecordAccess
Included in:
RecordAccess
Defined in:
lib/jade/formatter/accesses.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



31
32
33
34
# File 'lib/jade/formatter/accesses.rb', line 31

def format(node, indent:, source:)
  "#{format_node(node.target, source:)}.#{node.name.name}"
    .then(&and_indent(indent))
end