Class: WrapperComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/install/wrapper_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, arguments) ⇒ WrapperComponent

Returns a new instance of WrapperComponent.



4
5
6
7
8
9
# File 'lib/install/wrapper_component.rb', line 4

def initialize(name, arguments)
  defaults = Ui::Utilities.instance.defaults(component: name)
  settings = merge_defaults(defaults, arguments)

  @component = Ui::Component.new(settings)
end