Class: RegionExtractor

Inherits:
Object
  • Object
show all
Includes:
Proj4
Defined in:
lib/region_extractor.rb,
lib/region_extractor/point.rb,
lib/region_extractor/region.rb

Defined Under Namespace

Classes: Point, Region

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, &region_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, &region_transformer)
  @text = text || ''
  @regions = []
  @resulting_text = text
  @region_transformer = region_transformer
  extract!
end

Instance Attribute Details

#regionsObject

Returns the value of attribute regions.



8
9
10
# File 'lib/region_extractor.rb', line 8

def regions
  @regions
end

#resulting_textObject

Returns the value of attribute resulting_text.



8
9
10
# File 'lib/region_extractor.rb', line 8

def resulting_text
  @resulting_text
end