Class: PageEz::MethodGenerators::HasManyOrderedSelector::IndexedProcessor
- Inherits:
-
Object
- Object
- PageEz::MethodGenerators::HasManyOrderedSelector::IndexedProcessor
- Defined in:
- lib/page_ez/method_generators/has_many_ordered_selector.rb
Class Method Summary collapse
Class Method Details
.run_args(args) ⇒ Object
37 38 39 |
# File 'lib/page_ez/method_generators/has_many_ordered_selector.rb', line 37 def self.run_args(args) args[1..] end |
.selector(selector, args) ⇒ Object
41 42 43 |
# File 'lib/page_ez/method_generators/has_many_ordered_selector.rb', line 41 def self.selector(selector, args) "#{selector}:nth-of-type(#{args[0] + 1})" end |