Class: Prolog::Services::ReplaceContent::Splitter::PairedSplitterParams

Inherits:
SplitterParams
  • Object
show all
Defined in:
lib/prolog/services/replace_content/splitter/paired_params.rb

Overview

Builds splitter params for symmetric splitter; same marker text before and after selected content.

Instance Method Summary collapse

Methods inherited from SplitterParams

#add, #to_hash

Constructor Details

#initialize(content, endpoints, tag, identifier) ⇒ PairedSplitterParams

Returns a new instance of PairedSplitterParams.



13
14
15
16
17
# File 'lib/prolog/services/replace_content/splitter/paired_params.rb', line 13

def initialize(content, endpoints, tag, identifier)
  super content, endpoints
  add(tag: tag, identifier: identifier)
  self
end