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, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods included from ObjectX
#action_to_object, #object_create, #varify
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ ClipboardAction
Returns a new instance of ClipboardAction.
901 902 903 904 905 906 907 908 909 |
# File 'lib/ruby-macrodroid/actions.rb', line 901 def initialize(h={}) = { clipboard_text: '' } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
911 912 913 |
# File 'lib/ruby-macrodroid/actions.rb', line 911 def to_s(colour: false, indent: 0) 'Fill Clipboard' + "\n " + @h[:clipboard_text] #+ @h.inspect end |