Class: Yaml::Merge::Provider
- Inherits:
-
Object
- Object
- Yaml::Merge::Provider
- 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
- #analyze ⇒ Hash[Symbol, untyped]
- #capabilities ⇒ Hash[Symbol, untyped]
- #diff2 ⇒ Hash[Symbol, untyped]
- #family ⇒ String
- #merge2 ⇒ Hash[Symbol, untyped]
- #merge3 ⇒ Hash[Symbol, untyped]
- #provider_id ⇒ String
Instance Method Details
#analyze ⇒ Hash[Symbol, untyped]
7 |
# File 'sig/yaml/merge.rbs', line 7
def analyze: (Hash[Symbol, untyped] request) -> Hash[Symbol, untyped]
|
#capabilities ⇒ 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 |
#diff2 ⇒ Hash[Symbol, untyped]
8 |
# File 'sig/yaml/merge.rbs', line 8
def diff2: (Hash[Symbol, untyped] request) -> Hash[Symbol, untyped]
|
#family ⇒ String
14 |
# File 'lib/yaml/merge/provider.rb', line 14 def family = 'yaml' |
#merge2 ⇒ Hash[Symbol, untyped]
9 |
# File 'sig/yaml/merge.rbs', line 9
def merge2: (Hash[Symbol, untyped] request) -> Hash[Symbol, untyped]
|
#merge3 ⇒ Hash[Symbol, untyped]
10 |
# File 'sig/yaml/merge.rbs', line 10
def merge3: (Hash[Symbol, untyped] request) -> Hash[Symbol, untyped]
|
#provider_id ⇒ String
13 |
# File 'lib/yaml/merge/provider.rb', line 13 def provider_id = 'ruby.yaml' |