I agree with Mark, the 'nil' is most likely the return value of the method
call. And since you are not capturing it in some fashion, it is getting
returned. Remember (From the lesson 1 ruby_basics PDF, page 61), every
method returns a value and if it isn't captured in someway it generally gets
output somewhere.

On Thu, Apr 9, 2009 at 11:09 AM, The Wizard <[email protected]> wrote:

>  I don't see that here, but I used
>
>     puts my_instance.<name of method>
>
> rather than
>
>     my_instance.<name of method>
>
> as in one of the earlier lesson examples.
>
> Mark Almeida
>
> JoshLucas wrote:
>
> Is anyone getting a "nil" after each line? Here is my output...
>
> method1 method has 7 characters.
> nil
> whatever method has 8 characters.
> nil
> m545 method has 4 characters.
> nil
>
>
> instead of
>
> method1 method has 7 characters
> whatever method has 8 characters
> m545 has 4 characters
>
> Is this happening to anyone else?
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to