Module: Relevant

Defined in:
lib/relevant/widget.rb,
lib/relevant/version.rb,
lib/relevant/relevant.rb

Defined Under Namespace

Modules: Widget

Constant Summary collapse

Version =
VERSION = "0.0.8"

Class Method Summary collapse

Class Method Details

.register(widget) ⇒ Object


9
10
11
# File 'lib/relevant/relevant.rb', line 9

def self.register(widget) 
  @widgets << widget
end

.unregister_all!Object


13
14
15
# File 'lib/relevant/relevant.rb', line 13

def self.unregister_all!
  @widgets = []
end

.widgetsObject


5
6
7
# File 'lib/relevant/relevant.rb', line 5

def self.widgets
  @widgets
end