Module: Zoanthid::DSL
- Defined in:
- lib/zoanthid/dsl.rb
Instance Method Summary collapse
- #browser ⇒ Object
- #clear_history! ⇒ Object
- #document ⇒ Object
- #expand_link(rel, expansions = {}) ⇒ Object
Instance Method Details
#browser ⇒ Object
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 |
#document ⇒ Object
5 6 7 |
# File 'lib/zoanthid/dsl.rb', line 5 def document browser.document end |
#expand_link(rel, expansions = {}) ⇒ Object
13 14 15 |
# File 'lib/zoanthid/dsl.rb', line 13 def (rel, expansions={}) document.get_uri(rel).(expansions) end |