Sha256: 82b917cb222d37047861c52b1b6c414e0a4bb67b325255ae0e87ab895488d5da
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
module Druid module Elements class UnOrderedList < Element def self.finders [:class, :id, :index, :xpath] end def [](idx) if element.li(:xpath,".//li[#{idx+1}]").exist? element.li(:xpath,".//li[#{idx+1}]") else print "the sub element of ul is not li"+"\n" end end def items element.lis.size end def each for index in 1..self.items do yield self[index-1] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
druid-ts-0.0.1 | lib/druid/elements/unordered_list.rb |