Class: Watir::Generator::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/watir/generator/base/visitor.rb,
lib/watir/generator/base/generator.rb,
lib/watir/generator/base/idl_sorter.rb,
lib/watir/generator/base/spec_extractor.rb

Direct Known Subclasses

HTML, SVG

Defined Under Namespace

Classes: IDLSorter, SpecExtractor, Visitor

Instance Method Summary collapse

Instance Method Details

#generate(spec_url, io = StringIO.new) ⇒ Object



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

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

  extract_spec
  cleanup_spec

  write_header
  write_class_defs
  write_container_methods
  write_footer

  io
end