Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix some problems with pbcopy:

- Use print instead of puts.
- Use to_s instead of inspect.
  • Loading branch information...
commit 2d323b009fc960b2c9fcf801731154eb6ea3a439 1 parent 18ddd95
@SaberUK authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  _irb/functions.irb
View
2  _irb/functions.irb
@@ -6,7 +6,7 @@
def pbcopy(data)
IO.popen('pbcopy', 'r+') do |clipboard|
- clipboard.puts(data.inspect)
+ clipboard.print(data.to_s)
end
end

0 comments on commit 2d323b0

Please sign in to comment.
Something went wrong with that request. Please try again.