Class: Panda::CMS::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.



9
10
11
# File 'app/components/panda/cms/admin/slideover_component.rb', line 9

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

Instance Attribute Details

#titleObject (readonly)

Returns the value of attribute title.



7
8
9
# File 'app/components/panda/cms/admin/slideover_component.rb', line 7

def title
  @title
end