Class: NfgUi::UI::Bootstrap

Inherits:
Object
  • Object
show all
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

Attributes included from Utilities::Initializer

#class_name, #component, #component_name, #options, #traits

Instance Method Summary collapse

Methods included from Utilities::Initializer

#render_component

Constructor Details

#initialize(view_context, component_name = nil, *traits, **options, &block) ⇒ Bootstrap

attr_reader :component_name_folder



12
13
14
15
16
17
# 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

Instance Attribute Details

#view_contextObject

Returns the value of attribute view_context.



9
10
11
# File 'lib/nfg_ui/ui/bootstrap.rb', line 9

def view_context
  @view_context
end