Sha256: 1065d270b87f111a464b94642cb164ad0324c1098ad5619dc1c541a03f171295
Contents?: true
Size: 518 Bytes
Versions: 4
Compression:
Stored size: 518 Bytes
Contents
require_relative 'point' module Geometry class Text attr_writer :options def options @options = {} if !@options @options end # @return [Point] The point located in the top left corner of {Text}'s # bounding box attr_reader :position # @return [String] The {Text}'s textual content attr_reader :content def initialize(position, content) @position = Point[position] @content = content end def eql?(other) self.content == other.content end alias :== :eql? end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
geometry-in-ruby-0.0.5 | lib/geometry/text.rb |
geometry-in-ruby-0.0.4 | lib/geometry/text.rb |
geometry-in-ruby-0.0.3 | lib/geometry/text.rb |
geometry-in-ruby-0.0.2 | lib/geometry/text.rb |