Class: Mike::Browser

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

Overview

Document

Instance Method Summary collapse

Constructor Details

#initializeBrowser

Returns a new instance of Browser.



55
56
# File 'lib/mike.rb', line 55

def initialize
end

Instance Method Details

#open(url) {|doc| ... } ⇒ Object

Yields:

  • (doc)


58
59
60
61
62
# File 'lib/mike.rb', line 58

def open(url)
  doc = Document.new(url)
  yield doc if block_given?
  doc
end