Class: Leaflet::Draw::Rails::Testing::Polygon
- Defined in:
- lib/leaflet-draw-rails/polygon.rb
Instance Method Summary collapse
Methods inherited from Shape
Constructor Details
This class inherits a constructor from Leaflet::Draw::Rails::Testing::Shape
Instance Method Details
#draw! ⇒ Object
9 10 11 12 13 14 |
# File 'lib/leaflet-draw-rails/polygon.rb', line 9 def draw! @points.each do |x, y| @browser.click(x, y) end @browser.click(*@points.first) end |