Method: Workbench::Exporter#initialize

Defined in:
lib/work_bench/exporter.rb

#initialize(src, dst, fix = false) ⇒ Exporter

Returns a new instance of Exporter.

Parameters:

  • src (String)

    source directory

  • dst (String)

    destination directory

  • fix (Boolean) (defaults to: false)

    fix relative url



9
10
11
12
13
14
# File 'lib/work_bench/exporter.rb', line 9

def initialize src, dst, fix = false
  @fix = fix
  @src = src
  @dst = dst
  @browser = Rack::Test::Session.new(Rack::MockSession.new(Workbench::Application.new(src).app))
end