class NfgUi::UI::Bootstrap
The class that yields the component for the view
Attributes
view_context[RW]
Public Class Methods
new(view_context, component_name = nil, *traits, **options, &block)
click to toggle source
attr_reader :component_name_folder
# File lib/nfg_ui/ui/bootstrap.rb, line 12 def initialize(view_context, component_name = nil, *traits, **options, &block) self.view_context = view_context initializer(component_name, *traits, **options, &block) # @component_name_folder = component.component_family.to_s.pluralize if component.component_family.present? # raise component.send(:component_family).inspect end
Private Instance Methods
ancestry_string()
click to toggle source
# File lib/nfg_ui/ui/bootstrap.rb, line 35 def ancestry_string "NfgUi::Bootstrap::Components::#{class_name}" end
component_name_folder()
click to toggle source
# File lib/nfg_ui/ui/bootstrap.rb, line 21 def component_name_folder # component.component_family.to_s.pluralize if component.component_family.present? component.component_family.to_s.pluralize # '' end
components_within_group(*)
click to toggle source
# File lib/nfg_ui/ui/bootstrap.rb, line 39 def components_within_group(*) NfgUi::BOOTSTRAP_COMPONENT_NAMES end
group()
click to toggle source
# File lib/nfg_ui/ui/bootstrap.rb, line 27 def group 'bootstrap' end
grouping_folder()
click to toggle source
# File lib/nfg_ui/ui/bootstrap.rb, line 31 def grouping_folder 'bootstrap' end