Module: Control
- Defined in:
- lib/control/main.rb
Class Method Summary collapse
Class Method Details
.main ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/control/main.rb', line 7 def self.main # here, you should load your vending machine control software # as an example of using the actuators and sensors (see doc/actuators_and_sensors) Devices.display_show(0, 'Choose') Devices.display_show(1, 'Please...') Devices.(0) do log "cola pressed" Devices.display_show(0, 'Cola') end end |