Module: Lego
- Defined in:
- lib/lego-core.rb
Overview
:title:Lego-Core
Defined Under Namespace
Modules: Plugin Classes: Controller
Constant Summary collapse
- VERSION =
[0,0,1]
Class Method Summary collapse
- .config(&block) ⇒ Object
-
.plugin(plugin_module) ⇒ Object
plugin lets a plugin register itself globally.
- .set(options = {}) ⇒ Object
-
.version ⇒ Object
Return the current Lego version.
Class Method Details
.config(&block) ⇒ Object
23 24 25 |
# File 'lib/lego-core.rb', line 23 def self.config(&block) class_eval &block end |
.plugin(plugin_module) ⇒ Object
plugin lets a plugin register itself globally
31 32 33 |
# File 'lib/lego-core.rb', line 31 def self.plugin(plugin_module) plugin_module.register(Lego::Controller) end |
.set(options = {}) ⇒ Object
35 36 37 |
# File 'lib/lego-core.rb', line 35 def self.set(={}) Lego::Controller.set end |
.version ⇒ Object
Return the current Lego version.
16 17 18 |
# File 'lib/lego-core.rb', line 16 def self.version VERSION.join(".") end |