Class: Markly::Merge::FileAnalysis
- Inherits:
-
Markdown::Merge::FileAnalysis
- Object
- Markdown::Merge::FileAnalysis
- Markly::Merge::FileAnalysis
- Defined in:
- lib/markly/merge/file_analysis.rb
Overview
File analysis for Markdown files using Markly.
This is a thin wrapper around Markdown::Merge::FileAnalysis that:
- Forces the :markly backend
- Sets the default freeze token to “markly-merge”
- Exposes markly-specific options (flags, extensions)
Constant Summary collapse
- DEFAULT_FREEZE_TOKEN =
Default freeze token for markly-merge
"markly-merge"
Instance Method Summary collapse
-
#freeze_node_class ⇒ Class
Returns the FreezeNode class to use.
-
#initialize(source, freeze_token: DEFAULT_FREEZE_TOKEN, signature_generator: nil, flags: ::Markly::DEFAULT, extensions: [:table]) ⇒ FileAnalysis
constructor
Initialize file analysis with Markly backend.
Constructor Details
#initialize(source, freeze_token: DEFAULT_FREEZE_TOKEN, signature_generator: nil, flags: ::Markly::DEFAULT, extensions: [:table]) ⇒ FileAnalysis
Initialize file analysis with Markly backend.
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/markly/merge/file_analysis.rb', line 34 def initialize(source, freeze_token: DEFAULT_FREEZE_TOKEN, signature_generator: nil, flags: ::Markly::DEFAULT, extensions: [:table]) super( source, backend: :markly, freeze_token: freeze_token, signature_generator: signature_generator, flags: flags, extensions: extensions, ) end |
Instance Method Details
#freeze_node_class ⇒ Class
Returns the FreezeNode class to use.
48 49 50 |
# File 'lib/markly/merge/file_analysis.rb', line 48 def freeze_node_class FreezeNode end |