Class: PandaCms::Admin::SlideoverComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/panda_cms/admin/slideover_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title: "Settings") ⇒ SlideoverComponent

Returns a new instance of SlideoverComponent.



8
9
10
# File 'app/components/panda_cms/admin/slideover_component.rb', line 8

def initialize(title: "Settings")
  @title = title
end

Instance Attribute Details

#titleObject (readonly)

Returns the value of attribute title.



6
7
8
# File 'app/components/panda_cms/admin/slideover_component.rb', line 6

def title
  @title
end