Module: Stepper
- Defined in:
- lib/stepper-instrument.rb
Class Attribute Summary collapse
-
.daemon_host ⇒ Object
Returns the value of attribute daemon_host.
-
.daemon_port ⇒ Object
Returns the value of attribute daemon_port.
-
.disabled ⇒ Object
Returns the value of attribute disabled.
Class Method Summary collapse
- .daemon_hostport=(hostport) ⇒ Object
- .step(key, value, file = nil) ⇒ Object
- .stepup(key, delta = 1, file = nil) ⇒ Object
Class Attribute Details
.daemon_host ⇒ Object
Returns the value of attribute daemon_host.
7 8 9 |
# File 'lib/stepper-instrument.rb', line 7 def daemon_host @daemon_host end |
.daemon_port ⇒ Object
Returns the value of attribute daemon_port.
7 8 9 |
# File 'lib/stepper-instrument.rb', line 7 def daemon_port @daemon_port end |
.disabled ⇒ Object
Returns the value of attribute disabled.
7 8 9 |
# File 'lib/stepper-instrument.rb', line 7 def disabled @disabled end |
Class Method Details
.daemon_hostport=(hostport) ⇒ Object
9 10 11 12 |
# File 'lib/stepper-instrument.rb', line 9 def daemon_hostport=(hostport) self.daemon_host, port = hostport.split(':') self.daemon_port = port.to_i end |
.step(key, value, file = nil) ⇒ Object
22 23 24 |
# File 'lib/stepper-instrument.rb', line 22 def step(key, value, file = nil) write(key, value, :s, nil, file) end |
.stepup(key, delta = 1, file = nil) ⇒ Object
26 27 28 |
# File 'lib/stepper-instrument.rb', line 26 def stepup(key, delta = 1, file = nil) write(key, delta, :su, nil, file) end |