vendor/gems/prawn-0.3.0/lib/prawn/graphics.rb
# Draws a line from one point to another. Points may be specified as
# tuples or flattened argument list:
#
#   pdf.line [100,100], [200,250]
#   pdf.line(100,100,200,250)
#
Draws a line from one point to another. Points may be specified as
tuples or flattened argument list.


Draws a line from one point to another . Points may be specified as tuples or flattened argument list .
def line(*points)
      x0,y0,x1,y1 = points.flatten
      move_to(x0, y0)
      line_to(x1, y1)
    end
def line ( * points ) x0 , y0 , x1 , y1 = points . flatten move_to ( x0 , y0 ) line_to ( x1 , y1 ) end
Draws a line from one point to another.
Draws a line from one point to another .
points
<not_specific>