Module: Softcover::Commands::Opener

Extended by:
Opener
Included in:
Opener
Defined in:
lib/softcover/commands/opener.rb

Instance Method Summary collapse

Instance Method Details

#bookObject

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