class Alfred::Handler::Base
Constants
- Base_Invoke_Order
Attributes
order[R]
status[R]
Public Class Methods
new(alfred, opts = {})
click to toggle source
# File lib/alfred/handler.rb, line 14 def initialize(alfred, opts = {}) @core = alfred @order = Base_Invoke_Order @status = :initialize end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/alfred/handler.rb, line 52 def <=>(other) order <=> other.order end
action?(arg)
click to toggle source
# File lib/alfred/handler.rb, line 36 def action?(arg) arg.is_a?(Hash) && arg[:handler].eql?(@settings[:handler]) end
feedback()
click to toggle source
# File lib/alfred/handler.rb, line 87 def feedback @core.feedback end
feedback?()
click to toggle source
# File lib/alfred/handler.rb, line 29 def feedback? true end
on_action(arg)
click to toggle source
# File lib/alfred/handler.rb, line 40 def on_action(arg) ; end
on_close()
click to toggle source
# File lib/alfred/handler.rb, line 44 def on_close ; end
on_feedback()
click to toggle source
# File lib/alfred/handler.rb, line 32 def on_feedback raise NotImplementedError end
on_help()
click to toggle source
# File lib/alfred/handler.rb, line 25 def on_help [] end
on_parser()
click to toggle source
# File lib/alfred/handler.rb, line 21 def on_parser ; end
options()
click to toggle source
# File lib/alfred/handler.rb, line 71 def options @core.options end
parser()
click to toggle source
# File lib/alfred/handler.rb, line 75 def parser @core.query_parser end
query()
click to toggle source
# File lib/alfred/handler.rb, line 79 def query @core.query end
register()
click to toggle source
# File lib/alfred/handler.rb, line 48 def register @core.handler_controller.register(self) end
status_message(text, exitstatus)
click to toggle source
# File lib/alfred/handler.rb, line 57 def status_message(text, exitstatus) if exitstatus == 0 return "⭕ #{text}" else return "❌ #{text}" end end
ui()
click to toggle source
# File lib/alfred/handler.rb, line 83 def ui @core.ui end
xml_builder(arg)
click to toggle source
from alfred core
# File lib/alfred/handler.rb, line 67 def xml_builder(arg) @core.xml_builder(arg) end