vendor/bundle/ruby/1.9.1/gems/prawn-0.12.0/lib/prawn/graphics.rb
# Draws a horizontal line from <tt>x1</tt> to <tt>x2</tt> at the
# current <tt>y</tt> position, or the position specified by the :at option.
#
#  # draw a line from [25, 75] to [100, 75]
#  horizontal_line 25, 100, :at => 75  
#
Draws a horizontal line from x1 to x2 at the
current y position, or the position specified by the :at option.


Draws a horizontal line from x1 to x2 at the current y position or the position specified by the : at option .
def horizontal_line(x1,x2,options={})
      if options[:at]
        y1 = options[:at]
      else
        y1 = y - bounds.absolute_bottom
      end
      line(x1,y1,x2,y1)
    end
def horizontal_line ( x1 , x2 , options = { } ) if options [ :at ] y1 = options [ :at ] else y1 = y - bounds . absolute_bottom end line ( x1 , y1 , x2 , y1 ) end
Draws a horizontal line from <tt>x1</tt> to <tt>x2</tt> at the
current <tt>y</tt> position, or the position specified by the :at option.
Draws a horizontal line from <tt > x1< / tt > to <tt > x2< / tt > at the current <tt > y< / tt > position or the position specified by the : at option .
x1
<not_specific>
x2
<not_specific>
options
<not_specific>