Sha256: e1ffd218f436c332e99fc3f19a71d373d1a250af27ee15ddc739f9fa8e9d41c0
Contents?: true
Size: 449 Bytes
Versions: 2
Compression:
Stored size: 449 Bytes
Contents
module Straightedge module Figures # # a mark is an optionally-colored position # class Mark extend Forwardable include Straightedge::Aspects::Colorable attr_accessor :location def initialize(*xy, color: :white) @location = xy # [xy[0], xy[1]] @color = color end def x; @location[0] end def y; @location[1] end def self.empty(*xy); new(*xy, color: :none) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
straightedge-0.1.2 | lib/straightedge/figures/mark.rb |
straightedge-0.1.1 | lib/straightedge/figures/mark.rb |