parse_attributes!()
Convert attributes array into GeneratedAttribute objects.
# File railties/lib/rails/generators/named_base.rb, line 89 def parse_attributes! #:nodoc: self.attributes = (attributes || []).map do |key_value| name, type = key_value.split(':') Rails::Generators::GeneratedAttribute.new(name, type) end end