Module: RedBase::Dashboard::Module
- Included in:
- HomeController
- Defined in:
- lib/red_base/dashboard/module.rb
Constant Summary collapse
- @@priority =
50
- @@name =
"default_name"
Class Method Summary collapse
- .name(name_) ⇒ Object
- .priority(priority_) ⇒ Object
-
.show_me_on(section, priority = nil) ⇒ Object
Register the module on given section with given priority.
Class Method Details
.name(name_) ⇒ Object
38 39 40 |
# File 'lib/red_base/dashboard/module.rb', line 38 def self.name(name_) @@name = name_.to_s end |
.priority(priority_) ⇒ Object
34 35 36 |
# File 'lib/red_base/dashboard/module.rb', line 34 def self.priority(priority_) @@priority = priority_.to_i end |
.show_me_on(section, priority = nil) ⇒ Object
Register the module on given section with given priority
27 28 29 30 31 32 |
# File 'lib/red_base/dashboard/module.rb', line 27 def self.show_me_on(section, priority = nil) RedBase::Dashboard.instance.register_module(section, self) if not priority.nil? @@priority = priority end end |