Class: Konjak::Segmentor

Inherits:
Object
  • Object
show all
Defined in:
lib/konjak/segmentor.rb

Direct Known Subclasses

HtmlSegmentor, PolytexSegmentor, TmxSegmentor

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content, options = {}) ⇒ Segmentor

Returns a new instance of Segmentor.



5
6
7
8
# File 'lib/konjak/segmentor.rb', line 5

def initialize(content, options = {})
  @content = content
  @options = options
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



3
4
5
# File 'lib/konjak/segmentor.rb', line 3

def content
  @content
end

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/konjak/segmentor.rb', line 3

def options
  @options
end