Sha256: 94e6bb963d01b30b54d089ce08f93a12c196c304cd05304cc96d25905e8a7d0b
Contents?: true
Size: 550 Bytes
Versions: 1
Compression:
Stored size: 550 Bytes
Contents
require 'leaflet-draw-rails/browser' module Leaflet::Draw module Rails::Testing class Shape def initialize(points) @points = points end def on(map) @map = map @browser = Browser.new(@map) choose_tool! draw! end private def choose_tool! @map.find(tool_selector).click end def tool_selector class_name = self.class.to_s.split('::').last ".leaflet-draw-draw-#{ class_name.downcase }" 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/shape.rb |