class Alfred::Handler::Config

Public Class Methods

new(alfred, opts = {}) click to toggle source
Calls superclass method Alfred::Handler::Base::new
# File lib/alfred/handler/cofig.rb, line 4
def initialize(alfred, opts = {})
  super
  @order = 20
  @settings = {
    :setting => alfred.workflow_setting ,
    :break?  => true                    ,
    :handler => 'Config'
  }.update(opts)

end

Public Instance Methods

on_feedback() click to toggle source
# File lib/alfred/handler/cofig.rb, line 29
def on_feedback
end
on_help() click to toggle source
# File lib/alfred/handler/cofig.rb, line 21
def on_help
  {
    :kind     => 'text'                     ,
    :title    => '-c, --config [query]'     ,
    :subtitle => 'Config Workflow Settings' ,
  }
end
on_parser() click to toggle source
# File lib/alfred/handler/cofig.rb, line 15
def on_parser
  opts.on("-c", "--config CONFIG", "Config Workflow Settings") do |v|
    options.config = v
  end
end