Class: Autogui::Clipboard
- Inherits:
-
Object
- Object
- Autogui::Clipboard
- Defined in:
- lib/win32/autogui/application.rb
Overview
Wrapper class for text portion of the RubyGem win32/clipboard
Instance Method Summary collapse
-
#text ⇒ String
Clipboard text getter.
-
#text=(str) ⇒ Object
Clipboard text setter.
Instance Method Details
#text ⇒ String
Clipboard text getter
18 19 20 |
# File 'lib/win32/autogui/application.rb', line 18 def text Win32::Clipboard.data end |
#text=(str) ⇒ Object
Clipboard text setter
26 27 28 29 |
# File 'lib/win32/autogui/application.rb', line 26 def text=(str) data = str.nil? ? "" : str.dup Win32::Clipboard.set_data(data) end |