lib/perfect_shape/point_location.rb in perfect-shape-0.0.11 vs lib/perfect_shape/point_location.rb in perfect-shape-0.1.0
- old
+ new
@@ -18,9 +18,10 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
module PerfectShape
+ # Point location usually represents the top-left point in a shape
module PointLocation
attr_reader :x, :y
# Calls super before setting x,y (default: 0,0)
def initialize(x: 0, y: 0)