lib/html-native/collections.rb
# Converts the OrderedListComponent instance to the equivalent HTML. 
#
# *render* can be called directly, but that usually isn't necessary.
# HTMLComponent::Builder handles this automatically, so it only needs to be 
# done if there is no prior instance of one.
Converts the OrderedListComponent instance to the equivalent HTML.
render* can be called directly, but that usually isn't necessary.
HTMLComponent::Builder handles this automatically, so it only needs to be
done if there is no prior instance of one.
Converts the OrderedListComponent instance to the equivalent HTML . render * can be called directly but that usually isn ' t necessary . HTMLComponent :: Builder handles this automatically so it only needs to be done if there is no prior instance of one .
def render
    ol(@list_attributes) do
      @list_data.component_map do |l|
        li(@item_attributes) do
          @block ? @block.call(l) : l
        end
      end
    end
  end
def render ol ( @list_attributes ) do @list_data . component_map do | l | li ( @item_attributes ) do @block ? @block . call ( l ) : l end end end end
Converts the OrderedListComponent instance to the equivalent HTML.
Converts the OrderedListComponent instance to the equivalent HTML .