class BootstrapBuilders::Tab
Attributes
active[RW]
ajax_url[R]
container_html[RW]
container_id[R]
label[R]
Public Class Methods
new(args)
click to toggle source
# File lib/bootstrap_builders/tab.rb, line 5 def initialize(args) @active = args[:active] @label = args.fetch(:label) @ajax_url = args[:ajax_url] if args[:container_id] @specific_id_given = true else @specific_id_given = false end @container_id = args[:container_id].presence @container_id ||= SecureRandom.hex end
Public Instance Methods
active?()
click to toggle source
# File lib/bootstrap_builders/tab.rb, line 20 def active? @active end
specific_id_given?()
click to toggle source
# File lib/bootstrap_builders/tab.rb, line 24 def specific_id_given? @specific_id_given end