module Ameba::Formatter::Util

Direct including types

Defined in:

ameba/formatter/util.cr

Instance Method Summary

Instance Method Detail

def affected_code(issue : Issue, context_lines = 0, max_length = 120, ellipsis = " ...", prompt = "> ") #

[View source]
def affected_code(code, location, end_location = nil, context_lines = 0, max_length = 120, ellipsis = " ...", prompt = "> ") #

[View source]
def context(lines, lineno, context_lines = 3, remove_empty = true) #

[View source]
def deansify(message : String | Nil) : String | Nil #

[View source]
def trim(str, max_length = 120, ellipsis = " ...") #

[View source]