class RubyPocket::Cli::OpenAction
Public Instance Methods
call(options)
click to toggle source
# File lib/ruby_pocket/cli/open_action.rb, line 4 def call(options) favorite = Favorite[options.values[:id]] fail ArgumentError, 'Favorite not found!' unless favorite %x(open #{favorite.url}) end