From: Hassan Schroeder Date: 2010-09-24T10:48:18+09:00 Subject: Re: to make dot method dot method work? On Thu, Sep 23, 2010 at 6:22 PM, Pen Ttt wrote: > here is the code what i want Not totally :-) > class  Mycompute >  def initialize(str) >    @str=str >   end >  def values >    @result=@str >    self >  end > how to make  Mycompute.new("Abc").values+"d"  output  "Abcd"? def values @str end You're returning an object rather than a string, and that object has no such method as "+" :-) -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com twitter: @hassan