module Softcover::Commands::Opener

Public Instance Methods

book() click to toggle source

Returns the book to be opened.

# File lib/softcover/commands/opener.rb, line 11
def book
  Softcover::Book.new(origin: Softcover::Utils::source)
end
open!() click to toggle source
# File lib/softcover/commands/opener.rb, line 6
def open!
  book.open_in_browser
end