class Rails::Generators::NamedBase

def parse_attributes! #:nodoc:

:nodoc:
Convert attributes array into GeneratedAttribute objects.
def parse_attributes! #:nodoc:
  self.attributes = (attributes || []).map do |key_value|
    name, type = key_value.split(':')
    Rails::Generators::GeneratedAttribute.new(name, type)
  end
end