Class: Konjak::TmxSegmentor::SegmentString

Inherits:
String
  • Object
show all
Defined in:
lib/konjak/tmx_segmentor/segment_string.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str, segment) ⇒ SegmentString

Returns a new instance of SegmentString.



8
9
10
11
# File 'lib/konjak/tmx_segmentor/segment_string.rb', line 8

def initialize(str, segment)
  super(str)
  @segment = segment
end

Instance Attribute Details

#segmentObject

Returns the value of attribute segment.



6
7
8
# File 'lib/konjak/tmx_segmentor/segment_string.rb', line 6

def segment
  @segment
end