Class: Commonmarker::Merge::FileAnalysis
- Inherits:
-
Markdown::Merge::FileAnalysis
- Object
- Markdown::Merge::FileAnalysis
- Commonmarker::Merge::FileAnalysis
- Defined in:
- lib/commonmarker/merge/file_analysis.rb
Overview
File analysis for Markdown files using CommonMarker.
This is a thin wrapper around Markdown::Merge::FileAnalysis that:
- Forces the :commonmarker backend
- Sets the default freeze token to “commonmarker-merge”
- Exposes commonmarker-specific options
Constant Summary collapse
- DEFAULT_FREEZE_TOKEN =
Default freeze token for commonmarker-merge
"commonmarker-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, options: {}) ⇒ FileAnalysis
constructor
Initialize file analysis with CommonMarker backend.
Constructor Details
#initialize(source, freeze_token: DEFAULT_FREEZE_TOKEN, signature_generator: nil, options: {}) ⇒ FileAnalysis
Initialize file analysis with CommonMarker backend.
33 34 35 36 37 38 39 40 41 |
# File 'lib/commonmarker/merge/file_analysis.rb', line 33 def initialize(source, freeze_token: DEFAULT_FREEZE_TOKEN, signature_generator: nil, options: {}) super( source, backend: :commonmarker, freeze_token: freeze_token, signature_generator: signature_generator, options: , ) end |
Instance Method Details
#freeze_node_class ⇒ Class
Returns the FreezeNode class to use.
46 47 48 |
# File 'lib/commonmarker/merge/file_analysis.rb', line 46 def freeze_node_class FreezeNode end |