Class: RubyPocket::Cli::OpenAction
- Inherits:
-
Object
- Object
- RubyPocket::Cli::OpenAction
- Defined in:
- lib/ruby_pocket/cli/open_action.rb
Instance Method Summary collapse
Instance Method Details
#call(options) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/ruby_pocket/cli/open_action.rb', line 4 def call() favorite = Favorite[.values[:id]] fail ArgumentError, 'Favorite not found!' unless favorite %x(open #{favorite.url}) end |