Class: WSDL::ParseOptions
- Inherits:
-
Data
- Object
- Data
- WSDL::ParseOptions
- 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
-
#limits ⇒ Object
readonly
Returns the value of attribute limits.
-
#sandbox_paths ⇒ Object
readonly
Returns the value of attribute sandbox_paths.
-
#strictness ⇒ Object
readonly
Returns the value of attribute strictness.
Class Method Summary collapse
-
.default(sandbox_paths: nil, limits: nil, strictness: nil) ⇒ ParseOptions
Constructs a ParseOptions with sensible defaults.
Instance Attribute Details
#limits ⇒ Object (readonly)
Returns the value of attribute 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_paths ⇒ Object (readonly)
Returns the value of attribute 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 } |
#strictness ⇒ Object (readonly)
Returns the value of attribute 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.
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 |