Class: Opal::RSpec::Runner::LegacyServerProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/opal/rspec/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLegacyServerProxy

Returns a new instance of LegacyServerProxy.



45
46
47
# File 'lib/opal/rspec/runner.rb', line 45

def initialize
  @paths ||= Set.new
end

Instance Attribute Details

#debugObject

noop options



59
60
61
# File 'lib/opal/rspec/runner.rb', line 59

def debug
  @debug
end

#index_pathObject

Returns the value of attribute index_path.



56
57
58
# File 'lib/opal/rspec/runner.rb', line 56

def index_path
  @index_path
end

Instance Method Details

#append_path(path) ⇒ Object



49
50
51
# File 'lib/opal/rspec/runner.rb', line 49

def append_path(path)
  @paths << path
end

#to_cli_optionsObject



61
62
63
64
65
66
67
# File 'lib/opal/rspec/runner.rb', line 61

def to_cli_options
  options = []
  @paths.map do |path|
    options << "-I#{path.shellescape}"
  end
  options
end