class RushButton::DashButton
Attributes
mac[R]
Public Class Methods
new(mac_addr)
click to toggle source
# File lib/rush_button/dash_button.rb, line 4 def initialize mac_addr @mac = mac_addr end
Public Instance Methods
on_press(&process)
click to toggle source
# File lib/rush_button/dash_button.rb, line 8 def on_press &process @process = process return self end
press()
click to toggle source
# File lib/rush_button/dash_button.rb, line 13 def press return @process.call end