Class: Wms::Widget::Base
- Inherits:
-
Plugin::Plugin
- Object
- Plugin::Plugin
- Wms::Widget::Base
- Includes:
- Config::Mixin
- Defined in:
- lib/wms/widget/base.rb
Instance Attribute Summary collapse
-
#tags ⇒ Object
Returns the value of attribute tags.
Attributes included from Config::Mixin
Attributes inherited from Plugin::Plugin
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #register(options = {}) ⇒ Object
- #run ⇒ Object
- #tag(newtag) ⇒ Object
Methods included from Config::Mixin
#get_config, included, #init_config, #set_config, #source
Methods inherited from Plugin::Plugin
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
12 13 14 15 16 17 18 19 |
# File 'lib/wms/widget/base.rb', line 12 def initialize(={}) super @threadable = false ||= [] @logger = Logger.new(STDOUT) end |
Instance Attribute Details
#tags ⇒ Object
Returns the value of attribute tags.
8 9 10 |
# File 'lib/wms/widget/base.rb', line 8 def end |
Instance Method Details
#register(options = {}) ⇒ Object
28 29 30 |
# File 'lib/wms/widget/base.rb', line 28 def register(={}) raise "#{self.class}#register must be overidden" end |
#run ⇒ Object
38 39 40 |
# File 'lib/wms/widget/base.rb', line 38 def run raise "#{self.class}#run must be overidden" end |
#tag(newtag) ⇒ Object
44 45 46 |
# File 'lib/wms/widget/base.rb', line 44 def tag(newtag) << newtag end |