Class: WSDL::ParseOptions

Inherits:
Data
  • Object
show all
Defined in:
lib/wsdl/parse_options.rb

Overview

Immutable value object capturing the parse-affecting configuration options that flow through the parse pipeline (Parser.parse → Importer).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#limitsObject (readonly)

Returns the value of attribute limits

Returns:

  • (Object)

    the current value of limits



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/wsdl/parse_options.rb', line 14

ParseOptions = Data.define(:sandbox_paths, :limits, :strictness) {
  # Constructs a {ParseOptions} with sensible defaults.
  #
  # @param sandbox_paths [Array<String>, nil] sandbox paths (default: `nil`, auto-resolved by Source)
  # @param limits [Limits, nil] resource limits (default: {Limits} defaults)
  # @param strictness [Strictness, nil] strictness settings (default: all strict)
  # @return [ParseOptions]
  #
  def self.default(sandbox_paths: nil, limits: nil, strictness: nil)
    new(
      sandbox_paths:,
      limits: limits || Limits.new,
      strictness: strictness || Strictness.new
    )
  end
}

#sandbox_pathsObject (readonly)

Returns the value of attribute sandbox_paths

Returns:

  • (Object)

    the current value of sandbox_paths



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/wsdl/parse_options.rb', line 14

ParseOptions = Data.define(:sandbox_paths, :limits, :strictness) {
  # Constructs a {ParseOptions} with sensible defaults.
  #
  # @param sandbox_paths [Array<String>, nil] sandbox paths (default: `nil`, auto-resolved by Source)
  # @param limits [Limits, nil] resource limits (default: {Limits} defaults)
  # @param strictness [Strictness, nil] strictness settings (default: all strict)
  # @return [ParseOptions]
  #
  def self.default(sandbox_paths: nil, limits: nil, strictness: nil)
    new(
      sandbox_paths:,
      limits: limits || Limits.new,
      strictness: strictness || Strictness.new
    )
  end
}

#strictnessObject (readonly)

Returns the value of attribute strictness

Returns:

  • (Object)

    the current value of strictness



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/wsdl/parse_options.rb', line 14

ParseOptions = Data.define(:sandbox_paths, :limits, :strictness) {
  # Constructs a {ParseOptions} with sensible defaults.
  #
  # @param sandbox_paths [Array<String>, nil] sandbox paths (default: `nil`, auto-resolved by Source)
  # @param limits [Limits, nil] resource limits (default: {Limits} defaults)
  # @param strictness [Strictness, nil] strictness settings (default: all strict)
  # @return [ParseOptions]
  #
  def self.default(sandbox_paths: nil, limits: nil, strictness: nil)
    new(
      sandbox_paths:,
      limits: limits || Limits.new,
      strictness: strictness || Strictness.new
    )
  end
}

Class Method Details

.default(sandbox_paths: nil, limits: nil, strictness: nil) ⇒ ParseOptions

Constructs a WSDL::ParseOptions with sensible defaults.

Parameters:

  • sandbox_paths (Array<String>, nil) (defaults to: nil)

    sandbox paths (default: nil, auto-resolved by Source)

  • limits (Limits, nil) (defaults to: nil)

    resource limits (default: Limits defaults)

  • strictness (Strictness, nil) (defaults to: nil)

    strictness settings (default: all strict)

Returns:



22
23
24
25
26
27
28
# File 'lib/wsdl/parse_options.rb', line 22

def self.default(sandbox_paths: nil, limits: nil, strictness: nil)
  new(
    sandbox_paths:,
    limits: limits || Limits.new,
    strictness: strictness || Strictness.new
  )
end