Class: ChupaText::Decomposer

Inherits:
Object
  • Object
show all
Defined in:
lib/chupa-text/decomposer.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Decomposer



25
26
27
# File 'lib/chupa-text/decomposer.rb', line 25

def initialize(options)
  @options = options
end

Class Method Details

.registryObject



20
21
22
# File 'lib/chupa-text/decomposer.rb', line 20

def registry
  @@registry ||= DecomposerRegistry.new
end

Instance Method Details

#decompose(data) ⇒ Object

Raises:

  • (NotImplementedError)


33
34
35
# File 'lib/chupa-text/decomposer.rb', line 33

def decompose(data)
  raise NotImplementedError, "must implement #{self.class}\##{__method__}"
end

#target?(data) ⇒ Boolean

Raises:

  • (NotImplementedError)


29
30
31
# File 'lib/chupa-text/decomposer.rb', line 29

def target?(data)
  raise NotImplementedError, "must implement #{self.class}\##{__method__}"
end