Class: Yaml::Merge::Provider

Inherits:
Object
  • Object
show all
Defined in:
lib/yaml/merge/provider.rb,
sig/yaml/merge.rbs

Overview

YAML workflow selector delegating source-preserving operations to Psych.

Constant Summary collapse

BACKEND =
:'kreuzberg-language-pack'
DELEGATED_BACKEND =
:psych
DELEGATED_PROVIDER_ID =
'ruby.yaml.psych'
DEFAULT_PROFILE =
:source_preserving

Instance Method Summary collapse

Instance Method Details

#analyzeHash[Symbol, untyped]

Parameters:

  • request (Hash[Symbol, untyped])

Returns:

  • (Hash[Symbol, untyped])


7
# File 'sig/yaml/merge.rbs', line 7

def analyze: (Hash[Symbol, untyped] request) -> Hash[Symbol, untyped]

#capabilitiesHash[Symbol, untyped]

Returns:

  • (Hash[Symbol, untyped])


16
17
18
19
20
21
22
23
24
25
# File 'lib/yaml/merge/provider.rb', line 16

def capabilities
  {
    operations: Ast::Merge::ProviderContract::OPERATIONS,
    dialects: %i[yaml],
    backends: [BACKEND],
    profiles: [DEFAULT_PROFILE],
    role: :workflow,
    source_preservation: Psych::Merge.merge_provider.capabilities.fetch(:source_preservation)
  }.freeze
end

#diff2Hash[Symbol, untyped]

Parameters:

  • request (Hash[Symbol, untyped])

Returns:

  • (Hash[Symbol, untyped])


8
# File 'sig/yaml/merge.rbs', line 8

def diff2: (Hash[Symbol, untyped] request) -> Hash[Symbol, untyped]

#familyString

Returns:

  • (String)


14
# File 'lib/yaml/merge/provider.rb', line 14

def family = 'yaml'

#merge2Hash[Symbol, untyped]

Parameters:

  • request (Hash[Symbol, untyped])

Returns:

  • (Hash[Symbol, untyped])


9
# File 'sig/yaml/merge.rbs', line 9

def merge2: (Hash[Symbol, untyped] request) -> Hash[Symbol, untyped]

#merge3Hash[Symbol, untyped]

Parameters:

  • request (Hash[Symbol, untyped])

Returns:

  • (Hash[Symbol, untyped])


10
# File 'sig/yaml/merge.rbs', line 10

def merge3: (Hash[Symbol, untyped] request) -> Hash[Symbol, untyped]

#provider_idString

Returns:

  • (String)


13
# File 'lib/yaml/merge/provider.rb', line 13

def provider_id = 'ruby.yaml'