Kernek#y prints \n

Discussion in 'Ruby' started by T. Onoma, Nov 12, 2003.

  1. T. Onoma

    T. Onoma Guest

    strange...

    class Whatever
    ...
    def show
    y self.to_yaml
    end
    end
    s = Whatever.new
    s.show

    the print out shows a bunch of '\n' rather then actually making new lines. bug?
    T. Onoma, Nov 12, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. kitty
    Replies:
    0
    Views:
    566
    kitty
    Jul 18, 2005
  2. kitty
    Replies:
    0
    Views:
    422
    kitty
    Jul 18, 2005
  3. David
    Replies:
    23
    Views:
    3,827
    George W. Cherry
    Oct 6, 2003
  4. ron1972
    Replies:
    3
    Views:
    461
    Viator
    Nov 25, 2005
  5. Johnny
    Replies:
    1
    Views:
    386
    Steve R.
    Mar 5, 2004
Loading...

Share This Page