Jesse, did you see my last pull request? I rewrote the class but am having
trouble. Dana


On Fri, May 9, 2014 at 7:48 AM, Jesse Wolgamott <notifications@github.com>wrote:

> In automobile.rb:
>
> > +    @color = color
> > +    @make = make
> > +    @year = year
> > +  end
> > +
> > +  def to_s
> > +    "My car is #{@color}, its make is #{@make}, and #{@year}"
> > +  end
> > +
> > +  def car
> > +    myride = { "color" => "blue", "make" => "chevy", "year" => :"2000" }
> > +    myride.each_value {|value| puts value }
> > +  end
> > +end
> > +
> > +mycar = Automobile.new('Cyberblue', 'Chevy', 2012)
>
> There's a "rule" in Ruby that if you have 0, 1, or 2 parameters, then it's
> okay to have parameters like you did. Otherwise, you should use a hash,
> like so:
>
> Automobile.new(color: 'Cyberblue', make: 'Chevy', year: 2012)
>
> What changes will you have to make to accept that change?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/RubyoffRails/Episode6/pull/24/files#r12478917>
> .
>



-- 
Dana Nourie
http://www.dananourie.com