display

obj.display(port=$>) รข nil
Instance Public methods

Prints obj on the given port (default $>). Equivalent to:

def display(port=$>)
  port.write self
end

For example:

1.display
"cat".display
[ 4, 5, 6 ].display
puts

produces:

1cat456
doc_ruby_on_rails
2015-04-23 09:37:00
Comments
Leave a Comment

Please login to continue.