Class: Zoanthid::Browser

Inherits:
Object
  • Object
show all
Defined in:
lib/zoanthid/browser.rb

Constant Summary collapse

REQUEST_METHODS =
[:get, :post, :put, :delete, :head, :patch]

Instance Method Summary collapse

Instance Method Details

#clear_history!Object



8
9
10
# File 'lib/zoanthid/browser.rb', line 8

def clear_history!
  @history = []
end

#documentObject



4
5
6
# File 'lib/zoanthid/browser.rb', line 4

def document
  history.last
end