Sha256: b0bcd2251af2d15ce93cb58ac51337d3e101807b5abb879c26139bbb88edf7da

Contents?: true

Size: 238 Bytes

Versions: 3

Compression:

Stored size: 238 Bytes

Contents

# -*- coding: utf-8 -*-

##
# Accessors for #x, #y.
#
module Indexable
  module XY

    def x
      self[0]
    end

    def x=(x)
      self[0]=x
    end

    def y
      self[1]
    end

    def y=(y)
      self[1]=y
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sixarm_ruby_geometry-4.0.0 lib/sixarm_ruby_geometry/indexable/xy.rb
sixarm_ruby_geometry-3.1.1 lib/sixarm_ruby_geometry/indexable/xy.rb
sixarm_ruby_geometry-3.0.0 lib/sixarm_ruby_geometry/indexable/xy.rb