class Wms::Widget::Base

Attributes

tags[RW]

Public Class Methods

new(options={}) click to toggle source
Calls superclass method Wms::Plugin::Plugin::new
# File lib/wms/widget/base.rb, line 12
def initialize(options={})
  super
  @threadable = false
  @tags ||= []

  @logger = Logger.new(STDOUT)

end

Public Instance Methods

register(options={}) click to toggle source

This method sets up the configurations for the derived classes. This mothod must be called so that the configuration can be created. @params:

> options: optional configurations

@required

# File lib/wms/widget/base.rb, line 28
def register(options={})
  raise "#{self.class}#register must be overidden"
end
run() click to toggle source

The method will be called to processs the logics. The queue @params:

> queue: a queue for the class to add the end result

@required

# File lib/wms/widget/base.rb, line 38
def run
  raise "#{self.class}#run must be overidden"
end
tag(newtag) click to toggle source

An options

# File lib/wms/widget/base.rb, line 44
def tag(newtag)
  @tags << newtag
end