lib/tree_html.rb in tree_html-0.1.7 vs lib/tree_html.rb in tree_html-0.1.8

- old
+ new

@@ -7,9 +7,15 @@ BLANK = ''.freeze NO_CUSTOM_JS = [].freeze Css = File.read File.expand_path('../tree_html/tree_html.css', __FILE__) Js = Dir.glob("#{File.expand_path(__dir__)}/tree_html/*.js").map{|f| File.read f }.join(';') + class ::Object + def li_for_tree_html + "<li>#{NO_CHECKBOX}<a>#{to_s}</a></li>" + end + end + def tree_html "<ul class='tree-html'>#{li_for_tree_html}</ul>" end def tree_html_full