Class: NfgUi::UI::Bootstrap
- Inherits:
-
Object
- Object
- NfgUi::UI::Bootstrap
- Includes:
- Utilities::Initializer
- Defined in:
- lib/nfg_ui/ui/bootstrap.rb
Overview
The class that yields the component for the view
Instance Attribute Summary collapse
-
#view_context ⇒ Object
Returns the value of attribute view_context.
Attributes included from Utilities::Initializer
#class_name, #component, #component_name, #options, #traits
Instance Method Summary collapse
-
#initialize(view_context, component_name = nil, *traits, **options, &block) ⇒ Bootstrap
constructor
attr_reader :component_name_folder.
Methods included from Utilities::Initializer
Constructor Details
#initialize(view_context, component_name = nil, *traits, **options, &block) ⇒ Bootstrap
attr_reader :component_name_folder
14 15 16 17 18 19 |
# File 'lib/nfg_ui/ui/bootstrap.rb', line 14 def initialize(view_context, component_name = nil, *traits, **, &block) self.view_context = view_context initializer(component_name, *traits, **, &block) # @component_name_folder = component.component_family.to_s.pluralize if component.component_family.present? # raise component.send(:component_family).inspect end |
Instance Attribute Details
#view_context ⇒ Object
Returns the value of attribute view_context.
11 12 13 |
# File 'lib/nfg_ui/ui/bootstrap.rb', line 11 def view_context @view_context end |