Class: OpenFileAction
- Inherits:
-
FileAction
- Object
- MacroObject
- Action
- FileAction
- OpenFileAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Overview
Category: Files
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ OpenFileAction
constructor
A new instance of OpenFileAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ OpenFileAction
Returns a new instance of OpenFileAction.
1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 |
# File 'lib/ruby-macrodroid/actions.rb', line 1008 def initialize(h={}) = { app_name: '', class_name: '', package_name: '', file_path: '' } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
1021 1022 1023 |
# File 'lib/ruby-macrodroid/actions.rb', line 1021 def to_s(colour: false) 'OpenFileAction ' + @h.inspect end |