class Alfred::Feedback::WeblocItem

Public Class Methods

new(title, opts = {}) click to toggle source
Calls superclass method Alfred::Feedback::FileItem::new
# 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