Class: Konjak::TmxSegmentor::SegmentString
- Inherits:
-
String
- Object
- String
- Konjak::TmxSegmentor::SegmentString
- Defined in:
- lib/konjak/tmx_segmentor/segment_string.rb
Instance Attribute Summary collapse
-
#segment ⇒ Object
Returns the value of attribute segment.
Instance Method Summary collapse
-
#initialize(str, segment) ⇒ SegmentString
constructor
A new instance of SegmentString.
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
#segment ⇒ Object
Returns the value of attribute segment.
6 7 8 |
# File 'lib/konjak/tmx_segmentor/segment_string.rb', line 6 def segment @segment end |