Sha256: 703f7907ff9cff8db0c110d93de86327dac003026b0e01e7d5610ef5e0e9f978

Contents?: true

Size: 268 Bytes

Versions: 1

Compression:

Stored size: 268 Bytes

Contents

require 'leaflet-draw-rails/shape'

module Leaflet::Draw

  module Rails::Testing

    class Polyline < Shape

      def draw!
        @points.each do |x, y|
          @browser.click(x, y)
        end
        @browser.click(*@points.last)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
leaflet-draw-rails-0.1.0 lib/leaflet-draw-rails/polyline.rb