Permalink
Browse files

Added pbcopy irb method

  • Loading branch information...
1 parent 404697d commit 947732104c9200d79a1ab4cf190c3c4b5d10f127 Joe Ferris committed Nov 3, 2009
Showing with 6 additions and 0 deletions.
  1. +6 −0 irbrc
View
6 irbrc
@@ -21,3 +21,9 @@ class Object
(methods - Object.instance_methods).sort
end
end
+
+# copy a string to the clipboard
+def pbcopy(string)
+ `echo "#{string}" | pbcopy`
+ string
+end

0 comments on commit 9477321

Please sign in to comment.