Class: SidebarRegistry
- Inherits:
-
Object
- Object
- SidebarRegistry
- Defined in:
- lib/sidebar_registry.rb
Class Method Summary collapse
- .available_sidebar_types ⇒ Object
- .available_sidebars ⇒ Object
- .register_sidebar(klass_name) ⇒ Object
Class Method Details
.available_sidebar_types ⇒ Object
13 14 15 |
# File 'lib/sidebar_registry.rb', line 13 def .sort end |
.available_sidebars ⇒ Object
9 10 11 |
# File 'lib/sidebar_registry.rb', line 9 def .sort.map(&:constantize) end |
.register_sidebar(klass_name) ⇒ Object
5 6 7 |
# File 'lib/sidebar_registry.rb', line 5 def (klass_name) << klass_name.to_s end |