Module: SnippetCli::SnippetBuilder
- Defined in:
- lib/snippet_cli/snippet_builder.rb
Class Method Summary collapse
-
.build(**opts) ⇒ Object
Builds an Espanso match YAML entry from the given parameters.
Class Method Details
.build(**opts) ⇒ Object
Builds an Espanso match YAML entry from the given parameters. Validates against the Espanso match JSON schema before generating YAML. Raises ValidationError on failure.
16 17 18 19 |
# File 'lib/snippet_cli/snippet_builder.rb', line 16 def self.build(**opts) validate!(opts) render_yaml(opts) end |