Class: Tabula::Detectors::Nurminen::TextEdge
- Inherits:
-
Object
- Object
- Tabula::Detectors::Nurminen::TextEdge
- Defined in:
- lib/tabula/detectors/nurminen_detection_algorithm.rb
Overview
Helper class for text edges
Instance Attribute Summary collapse
-
#bottom ⇒ Object
readonly
Returns the value of attribute bottom.
-
#top ⇒ Object
readonly
Returns the value of attribute top.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
Instance Method Summary collapse
-
#initialize(x, top, bottom, type) ⇒ TextEdge
constructor
A new instance of TextEdge.
Constructor Details
#initialize(x, top, bottom, type) ⇒ TextEdge
Returns a new instance of TextEdge.
202 203 204 205 206 207 |
# File 'lib/tabula/detectors/nurminen_detection_algorithm.rb', line 202 def initialize(x, top, bottom, type) @x = x @top = top @bottom = bottom @type = type end |
Instance Attribute Details
#bottom ⇒ Object (readonly)
Returns the value of attribute bottom.
200 201 202 |
# File 'lib/tabula/detectors/nurminen_detection_algorithm.rb', line 200 def bottom @bottom end |
#top ⇒ Object (readonly)
Returns the value of attribute top.
200 201 202 |
# File 'lib/tabula/detectors/nurminen_detection_algorithm.rb', line 200 def top @top end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
200 201 202 |
# File 'lib/tabula/detectors/nurminen_detection_algorithm.rb', line 200 def type @type end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
200 201 202 |
# File 'lib/tabula/detectors/nurminen_detection_algorithm.rb', line 200 def x @x end |