Class: Array
Instance Method Summary collapse
Instance Method Details
#html_inspect ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/html_inspector/core_ext/array.rb', line 2 def html_inspect list = '<ol start="0">' self.each do |element| list << "<li>#{element.html_inspect}</li>" end list << '</ol>' end |