Method: Array#to_html

Defined in:
lib/shoes/inspect.rb

#to_htmlObject



31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/shoes/inspect.rb', line 31

def to_html
  ary = self
  Web.Bit {
    h5 "A List of Things"
    h1 "An Array"
    unless ary.empty?
      ol {
        ary.map { |x| li { self << HTML(x) } }
      }
    end
  }
end