Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/pasteboarb/core-ext/object.rb
Instance Method Summary collapse
-
#paste(pboard = :general) ⇒ Object
paste from given pasteboard pboard = general | ruler | find | font.
- #to_find ⇒ Object
-
#to_pboard(pboard = :general) ⇒ Object
(also: #to_pb)
copy to pasteboard pboard = general | ruler | find | font.
Instance Method Details
#paste(pboard = :general) ⇒ Object
paste from given pasteboard pboard = general | ruler | find | font
14 15 16 |
# File 'lib/pasteboarb/core-ext/object.rb', line 14 def paste(pboard=:general) PasteboaRb::PASTE.call pboard end |
#to_find ⇒ Object
18 19 20 |
# File 'lib/pasteboarb/core-ext/object.rb', line 18 def to_find self.to_pb :find end |
#to_pboard(pboard = :general) ⇒ Object Also known as: to_pb
copy to pasteboard pboard = general | ruler | find | font
7 8 9 |
# File 'lib/pasteboarb/core-ext/object.rb', line 7 def to_pboard(pboard=:general) paste pboard if PasteboaRb::TO_PBOARD.call self, pboard end |