Module: Chainsaw

Defined in:
lib/chainsaw.rb,
lib/chainsaw/common.rb,
lib/chainsaw/browser.rb,
lib/chainsaw/element.rb

Defined Under Namespace

Modules: Element, Encoding, ErrorWrapper, Util Classes: Browser, ParseError, RequestError

Constant Summary collapse

VERSION =
'0.0.3'

Class Method Summary collapse

Class Method Details

.launch(*args) ⇒ Object

Return a instance of the Chainsaw::Browser class.



24
25
26
27
28
29
30
31
# File 'lib/chainsaw.rb', line 24

def self.launch(*args)
  cs = Chainsaw::Browser.new *args
  if block_given?
    block = Proc.new
    cs.instance_eval { process_chain &block }
  end
  cs
end