Class: Geometry::Text
- Inherits:
-
Object
- Object
- Geometry::Text
- Defined in:
- lib/geometry/text.rb
Instance Attribute Summary collapse
-
#content ⇒ String
readonly
The Text‘s textual content.
- #options ⇒ Object
-
#position ⇒ Point
readonly
bounding box.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
-
#initialize(position, content) ⇒ Text
constructor
A new instance of Text.
Constructor Details
Instance Attribute Details
#content ⇒ String (readonly)
Returns The Geometry::Text‘s textual content.
17 18 19 |
# File 'lib/geometry/text.rb', line 17 def content @content end |
#options ⇒ Object
7 8 9 10 |
# File 'lib/geometry/text.rb', line 7 def @options = {} if !@options @options end |
#position ⇒ Point (readonly)
bounding box
14 15 16 |
# File 'lib/geometry/text.rb', line 14 def position @position end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
24 25 26 |
# File 'lib/geometry/text.rb', line 24 def eql?(other) self.content == other.content end |