Class: Vines::Config::ComponentPort
Instance Attribute Summary
Attributes inherited from Port
Instance Method Summary collapse
- #components(options = nil) ⇒ Object
-
#initialize(config, host = '0.0.0.0', port = 5347, &block) ⇒ ComponentPort
constructor
A new instance of ComponentPort.
- #password(component) ⇒ Object
Methods inherited from Port
Methods included from Log
Constructor Details
#initialize(config, host = '0.0.0.0', port = 5347, &block) ⇒ ComponentPort
Returns a new instance of ComponentPort.
215 216 217 218 |
# File 'lib/vines/config.rb', line 215 def initialize(config, host='0.0.0.0', port=5347, &block) @components, @stream = {}, Vines::Stream::Component super(config, host, port, &block) end |
Instance Method Details
#components(options = nil) ⇒ Object
220 221 222 223 224 225 226 |
# File 'lib/vines/config.rb', line 220 def components(=nil) if @components = else @components end end |
#password(component) ⇒ Object
228 229 230 |
# File 'lib/vines/config.rb', line 228 def password(component) @components[component] end |