Class: Alfred::Feedback::WeblocItem
- Defined in:
- lib/alfred/feedback/webloc_item.rb
Constant Summary
Constants inherited from Item
Instance Attribute Summary
Attributes inherited from Item
#arg, #autocomplete, #icon, #order, #subtitle, #title, #type, #uid, #valid
Instance Method Summary collapse
-
#initialize(title, opts = {}) ⇒ WeblocItem
constructor
A new instance of WeblocItem.
Methods inherited from Item
#<=>, #all_title_match?, #always_match?, #match?, #title_match?, #to_xml
Constructor Details
#initialize(title, opts = {}) ⇒ WeblocItem
Returns a new instance of WeblocItem.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/alfred/feedback/webloc_item.rb', line 8 def initialize(title, opts = {}) unless File.exist? opts[:webloc] opts[:webloc] = ::Alfred::Util.make_webloc( opts[:title], opts[:url], opts[:folder]) end @subtitle = opts[:url] @uid = opts[:url] super title, opts end |