class Blueprinter::Generators::BlueprintGenerator
def formatted_fields
def formatted_fields two_indents = indent * 2 fields_string = fields.each_with_object([]) do |f, memo| if memo.last.nil? memo << " :#{f}," else now = "#{memo.last} :#{f}," if now.length > options['wrap_at'].to_i memo << ":#{f}," else memo[memo.length - 1] = now end end end.join("\n#{two_indents}") fields_string[0, fields_string.length - 1] end