Class: Wms::Input::Base
- Inherits:
-
Plugin::Plugin
- Object
- Plugin::Plugin
- Wms::Input::Base
- Includes:
- Config::Mixin
- Defined in:
- lib/wms/input/base.rb
Direct Known Subclasses
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(&block) ⇒ 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.
10 11 12 13 14 15 16 17 |
# File 'lib/wms/input/base.rb', line 10 def initialize(={}) super @threadable = false @tags ||= [] @logger = Logger.new(STDOUT) end |
Instance Attribute Details
#tags ⇒ Object
Returns the value of attribute tags.
7 8 9 |
# File 'lib/wms/input/base.rb', line 7 def @tags end |
Instance Method Details
#register(options = {}) ⇒ Object
26 27 28 |
# File 'lib/wms/input/base.rb', line 26 def register(={}) raise "#{self.class}#register must be overidden" end |
#run(&block) ⇒ Object
36 37 38 |
# File 'lib/wms/input/base.rb', line 36 def run(&block) raise "#{self.class}#run must be overidden" end |
#tag(newtag) ⇒ Object
42 43 44 |
# File 'lib/wms/input/base.rb', line 42 def tag(newtag) @tags << newtag end |