$LOAD_PATH << '../lib'
require 'html_format'
html_format(nil) # => nil
html_format(1) # => "
"
1.to_html # => ""
[].to_html # => nil
"".to_html # => nil
v = [
{id: 1, name: "alice", created_at: "2000-01-01"},
{id: 2, name: "bob", created_at: "2000-01-02"},
{id: 3, name: "carol", created_at: "2000-01-03"},
]
v.to_html # => ""
v = {id: 1, name: "alice", created_at: "2000-01-01"}
v.to_html # => ""
v = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
]
v.to_html # => ""
[0, 1, 2, 3].to_html # => ""