Ruby++

I’ve been getting to use Ruby quite a bit lately, mostly for schoolwork. Ruby has a nice little operator, <<, which is used to append items to objects. The only other language I’ve used that has this operator is C++. So, I figured I’d reconstruct the C++ stuff in ruby:


  class Object
    def cout() $stdout end def endl() "\n" end
  end

  cout << 'oh' <lt; ' ' <lt; 'yeah' <lt; endl;