Class: Xing::Builders::OrderedListBuilder
- Inherits:
-
ListBuilder
- Object
- ListBuilder
- Xing::Builders::OrderedListBuilder
- Defined in:
- lib/xing/builders/ordered_list_builder.rb
Instance Attribute Summary
Attributes inherited from ListBuilder
Instance Method Summary collapse
Methods inherited from ListBuilder
#build, #initialize, #locator_for
Methods included from Services::Locator
#normalize_path, #route_to, #router
Constructor Details
This class inherits a constructor from Xing::Builders::ListBuilder
Instance Method Details
#set_position(record, index) ⇒ Object
4 5 6 |
# File 'lib/xing/builders/ordered_list_builder.rb', line 4 def set_position(record, index) record.position = index if record.has_attribute?(:position) end |