Class: Watir::HTML::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/watir-webdriver/html/generator.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) generate(spec_url, io = StringIO.new)



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/watir-webdriver/html/generator.rb', line 7

def generate(spec_url, io = StringIO.new)
  @spec_url, @io = spec_url, io

  extract_spec
  cleanup_spec

  write_header
  write_class_defs
  write_container_methods
  write_footer

  io
end