Module: MundoPepino::VisitsHistory

Included in:
MundoPepino
Defined in:
lib/mundo_pepino/visits_history.rb

Instance Method Summary collapse

Instance Method Details

#do_visit(url) ⇒ Object



3
4
5
6
7
# File 'lib/mundo_pepino/visits_history.rb', line 3

def do_visit(url)
  @visits ||= []
  @visits << url
  visit url
end

#last_visitedObject



9
10
11
# File 'lib/mundo_pepino/visits_history.rb', line 9

def last_visited
  @visits.last
end