lib/peeky/renderer/method_signature_render.rb
# Indentation prefix as a string.
#
# Defaults to ''
#
# If you were writing a class into a file with an existing
# module, you may set the indent to '  ' if you wanted this
# render to indent by two spaces
Indentation prefix as a string.
Defaults to ''

If you were writing a class into a file with an existing
module, you may set the indent to '  ' if you wanted this
render to indent by two spaces
Indentation prefix as a string . Defaults to ' ' If you were writing a class into a file with an existing module you may set the indent to ' ' if you wanted this render to indent by two spaces
def render_signature
        name = method_signature.name
        formatted_parameters = method_signature.parameters.map(&:signature_format).join(', ')
        params = formatted_parameters.length.zero? ? '' : "(#{formatted_parameters})"
        "#{@indent}def #{name}#{params}"
      end
def render_signature name = method_signature . name formatted_parameters = method_signature . parameters . map ( & :signature_format ) . join ( ', ' ) params = formatted_parameters . length . zero? ? '' : "(#{formatted_parameters})" "#{@indent}def #{name}#{params}" end
Indentation prefix as a string.
Indentation prefix as a string .