class Tabit::Builder
Public Class Methods
new(template, options) { |self| ... }
click to toggle source
# File lib/tabit/builder.rb, line 26 def initialize(template, options) self.template = template self.options = options yield self if block_given? end
Public Instance Methods
children()
click to toggle source
# File lib/tabit/builder.rb, line 45 def children @children ||= [] end
to_s()
click to toggle source
# File lib/tabit/builder.rb, line 33 def to_s current_options = options current_options.delete :outer current_options.delete :inner template.content_tag( :ul, children.collect(&:to_s).join.html_safe, current_options ) end