lib/hatemile/implementation/accessible_css_implementation.rb
##
# The operation method of _speak_as method for digits.
#
# @param content [String] The text content of element.
# @param index [Integer] The index of pattern in text content of element.
# @param children [Array<Hatemile::Util::Html::HTMLDOMElement>] The
#   children of element.
# @return [Array<Hatemile::Util::Html::HTMLDOMElement>] The new children
#   of element.
The operation method of _speak_as method for digits.
The operation method of _speak_as method for digits .
def operation_speak_as_digits(content, index, children)
        data_property_value = 'digits'
        unless index.zero?
          children.push(
            create_content_element(content[0..(index - 1)], data_property_value)
          )
        end
        children.push(create_aural_content_element(' ', data_property_value))
        children.push(
          create_content_element(
            content[index..index],
            data_property_value
          )
        )
        children
      end
def operation_speak_as_digits ( content , index , children ) data_property_value = 'digits' unless index . zero? children . push ( create_content_element ( content [ 0 .. ( index - 1 ) ] , data_property_value ) ) end children . push ( create_aural_content_element ( ' ' , data_property_value ) ) children . push ( create_content_element ( content [ index .. index ] , data_property_value ) ) children end
The operation method of _speak_as method for digits.
The operation method of _speak_as method for digits .
The new children of element.
The new children of element .
Array<Hatemile::Util::Html::HTMLDOMElement>
content
The text content of element.
The text content of element .
index
The index of pattern in text content of element.
The index of pattern in text content of element .
children
The children of element.
The children of element .