Method: Geometry::PointZero#pop

Defined in:
lib/geometry/point_zero.rb

#pop(count = 1) ⇒ Point

Returns a new Geometry::Point with the given number of elements removed from the end

Returns:

  • (Point)

    the popped elements



109
110
111
# File 'lib/geometry/point_zero.rb', line 109

def pop(count=1)
    Point[Array.new(count, 0)]
end