class Interview::TabBox
Public Instance Methods
build(b) { || ... }
click to toggle source
# File lib/interview/controls/tab_box.rb, line 4 def build(b) # todo: set auto first active b.section style: 'ul', html_class: 'nav nav-tabs tab_box' do b.meta_control pointer: self do yield if block_given? end end b.section html_class: 'tab-content' do yield if block_given? end end
build_child(b, control, &block)
click to toggle source
# File lib/interview/controls/tab_box.rb, line 16 def build_child(b, control, &block) control.build_caption(b) end