Sha256: 1648cea077a81ca12caaf68469b257819d122a545f88ea13c0c54e0951cde694
Contents?: true
Size: 372 Bytes
Versions: 10
Compression:
Stored size: 372 Bytes
Contents
require 'druid/locator_generator' module Druid module ElementLocators def self.included(cls) Druid::LocatorGenerator.generate_locators(cls) end def element(tag, identifier={:index => 0}) element_for(tag, identifier.clone) end private def locator(identifier) identifier[0] ? identifier[0] : {:index => 0} end end end
Version data entries
10 entries across 10 versions & 2 rubygems