Class: ZMQMachine::Device::Configuration
- Inherits:
-
Object
- Object
- ZMQMachine::Device::Configuration
- Defined in:
- lib/zm/device/configuration.rb
Instance Method Summary collapse
-
#initialize(&blk) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(&blk) ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 17 18 19 |
# File 'lib/zm/device/configuration.rb', line 11 def initialize(&blk) instance_eval(&blk) if block_given? # set defaults self.verbose ||= false self.hwm ||= 1 self.linger ||= 0 self.topic ||= '' end |