class Rails::Generators::NamedBase

def parse_attributes!

Convert attributes array into GeneratedAttribute objects.
def parse_attributes!
  self.attributes = (attributes || []).map do |attr|
    Rails::Generators::GeneratedAttribute.parse(attr)
  end
end