class Rufo::Command
def format(code, dir, erb: false)
def format(code, dir, erb: false) options = @dot_file.get_config_in(dir) || {} if erb formatter = Rufo::ErbFormatter.new(code, **options) else formatter = Rufo::Formatter.new(code, **options) end formatter.format result = formatter.result result end