class ProconBypassMan::Procon::ButtonCollection::Button
Attributes
bit_position[RW]
byte_position[RW]
Public Class Methods
new(key)
click to toggle source
# File lib/procon_bypass_man/procon/button_collection.rb, line 4 def initialize(key) b = BUTTONS_MAP[key] or raise("undefined button") self.byte_position = b[:byte_position] self.bit_position = b[:bit_position] end