Skip to content
Browse files

Add more put examples

  • Loading branch information...
1 parent 9170daa commit 33aeafdca5852f83677c6b7ba2e698f541d25c09 @drbrain committed
Showing with 10 additions and 2 deletions.
  1. +10 −2 README.rdoc
View
12 README.rdoc
@@ -19,12 +19,20 @@ and retrieve multiple items and multiple item flavors to the pasteboard unlike
== SYNOPSIS:
-Adding data to the clipboard:
-
require 'pasteboard'
pasteboard = Pasteboard.new
+Adding a URL to the clipboard:
+
+ pasteboard.put_url 'http://blog.segment7.net', 'my blog'
+
+Adding a JPEG with URL to the clipboard:
+
+ pasteboard.put_jpeg_url jpeg, 'http://example', 'my cool jpeg'
+
+Adding other data to the clipboard (TIFF + URL):
+
item = [
[Pasteboard::Type::TIFF, tiff],
[Pasteboard::Type::URL, url],

0 comments on commit 33aeafd

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