class Interview::ProgressBar

Attributes

hidden[RW]

Public Instance Methods

build(b) click to toggle source
# File lib/interview/controls/progress_bar.rb, line 8
def build(b)
  html_class = @html_class
  html_class << 'progress'
  html_class << 'collapse' if @hidden
  b.section html_class: html_class, html_options: @html_options do
    b.section html_class: 'progress-bar bar', html_options: { style: 'width: 0%' }
  end
end