Marcin Mielzynski
5/4/2007 9:09:00 PM
jervis@o2.ie wrote:
> Can someone briefly explain why ::
> puts i.to_s +" :: "+arrayoutput[i]
>
> yaml.rb:12: undefined method `+@' for " :: ":String (NoMethodError)
> from F:/RUBY/Source/yaml.rb:11:in `times'
> from F:/RUBY/Source/yaml.rb:11
>
because parens in Ruby are optional, so it ends up:
puts i.to_s(+" :: "+arrayoutput[i])
lopex