class WriteToFileAction

Category: Files

Public Class Methods

new(h={}) click to toggle source
Calls superclass method FileAction::new
# File lib/ruby-macrodroid/actions.rb, line 1643
def initialize(h={})

  options = {
    app_name: '',
    class_name: '',
    package_name: '',
    file_path: ''
  }

  super(options.merge h)

end

Public Instance Methods

to_s(colour: false, indent: 0) click to toggle source
# File lib/ruby-macrodroid/actions.rb, line 1656
def to_s(colour: false, indent: 0)
  'Write To File' + "\n  " + @h[:filename] #+ @h.inspect
end
Also aliased as: to_summary
to_summary(colour: false, indent: 0)
Alias for: to_s