Class: RegionExtractor
- Inherits:
-
Object
- Object
- RegionExtractor
- Includes:
- Proj4
- Defined in:
- lib/region_extractor.rb,
lib/region_extractor/point.rb,
lib/region_extractor/region.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#regions ⇒ Object
Returns the value of attribute regions.
-
#resulting_text ⇒ Object
Returns the value of attribute resulting_text.
Instance Method Summary collapse
-
#initialize(text, ®ion_transformer) ⇒ RegionExtractor
constructor
A new instance of RegionExtractor.
Constructor Details
#initialize(text, ®ion_transformer) ⇒ RegionExtractor
Returns a new instance of RegionExtractor.
10 11 12 13 14 15 16 |
# File 'lib/region_extractor.rb', line 10 def initialize(text, ®ion_transformer) @text = text || '' @regions = [] @resulting_text = text @region_transformer = region_transformer extract! end |
Instance Attribute Details
#regions ⇒ Object
Returns the value of attribute regions.
8 9 10 |
# File 'lib/region_extractor.rb', line 8 def regions @regions end |
#resulting_text ⇒ Object
Returns the value of attribute resulting_text.
8 9 10 |
# File 'lib/region_extractor.rb', line 8 def resulting_text @resulting_text end |