lib/hatemile/util/id_generator.rb
##
# Generate a id for a element.
#
# @param element [Hatemile::Util::Html::HTMLDOMElement] The element.
Generate a id for a element.
Generate a id for a element .
def generate_id(element)
        return if element.has_attribute?('id')
        element.set_attribute('id', "#{@prefix_id}#{@count}")
        @count += 1
      end
def generate_id ( element ) return if element . has_attribute? ( 'id' ) element . set_attribute ( 'id' , "#{@prefix_id}#{@count}" ) @count += 1 end
Generate a id for a element.
Generate a id for a element .
element
None