Module: Zoanthid::DSL

Defined in:
lib/zoanthid/dsl.rb

Instance Method Summary collapse

Instance Method Details

#browserObject



9
10
11
# File 'lib/zoanthid/dsl.rb', line 9

def browser
  @browser ||= Zoanthid::Browser.new
end

#clear_history!Object



17
18
19
# File 'lib/zoanthid/dsl.rb', line 17

def clear_history!
  browser.clear_history!
end

#documentObject



5
6
7
# File 'lib/zoanthid/dsl.rb', line 5

def document
  browser.document
end


13
14
15
# File 'lib/zoanthid/dsl.rb', line 13

def expand_link(rel, expansions={})
  document.get_uri(rel).expand(expansions)
end