module Druid::NestedElements
Public Class Methods
included(cls)
click to toggle source
# File lib/druid/nested_elements.rb, line 6 def self.included(cls) Druid::LocatorGenerator.generate_locators(cls) end
Private Instance Methods
locator(identifier)
click to toggle source
# File lib/druid/nested_elements.rb, line 12 def locator(identifier) identifier[0] ? identifier[0] : {:index => 0} end