Class: ClipboardAction
- Inherits:
-
DeviceAction
- Object
- MacroObject
- Action
- DeviceAction
- ClipboardAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Overview
Category: Device Actions
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ ClipboardAction
constructor
A new instance of ClipboardAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ ClipboardAction
Returns a new instance of ClipboardAction.
729 730 731 732 733 734 735 736 737 |
# File 'lib/ruby-macrodroid/actions.rb', line 729 def initialize(h={}) = { clipboard_text: '' } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
739 740 741 |
# File 'lib/ruby-macrodroid/actions.rb', line 739 def to_s(colour: false) 'Fill Clipboard' + "\n " + @h[:clipboard_text] #+ @h.inspect end |