Sha256: 9006739aa3ba2eac933a98ab395ff6534dac8ce04be62911b788a6f749f78eea
Contents?: true
Size: 400 Bytes
Versions: 28
Compression:
Stored size: 400 Bytes
Contents
class ProconBypassMan::Procon::Button class UnknownButtonFoundError < StandardError; end attr_accessor :byte_position, :bit_position def initialize(key) b = ProconBypassMan::Procon::ButtonCollection::BUTTONS_MAP[key] or raise(UnknownButtonFoundError, "#{key}は定義にないボタンです") self.byte_position = b[:byte_position] self.bit_position = b[:bit_position] end end
Version data entries
28 entries across 28 versions & 1 rubygems