Module: Softcover::Commands::Opener
Instance Method Summary collapse
-
#book ⇒ Object
Returns the book to be opened.
- #open! ⇒ Object
Instance Method Details
#book ⇒ Object
Returns the book to be opened.
11 12 13 |
# File 'lib/softcover/commands/opener.rb', line 11 def book Softcover::Book.new(origin: Softcover::Utils::source) end |
#open! ⇒ Object
6 7 8 |
# File 'lib/softcover/commands/opener.rb', line 6 def open! book.open_in_browser end |