«
Rule languages supports extensions to HSBType
logger.info("HSBType inspected: #{HSBType.new.inspect}")
begin
logger.info("HSBType from hex: #{HSBType.new('#abcdef').to_hex}")
rescue => e
logger.error("#{e}: #{e.backtrace.join("\n")}")
raise
end
logger.info("HSBType is on: #{<state>.on?}")
logger.info("HSBType is off: #{<state>.off?}")
state | on | off | |
---|---|---|---|
HSBType::BLACK | false | true | |
HSBType::WHITE | true | false | |
HSBType::RED | true | false | |
HSBType.new(0, 0, 5) | true | false |