Sha256: 3c0a21ef7418e3d470009a8764997daf9af17cbbf787169348a49436ecc17fdb
Contents?: true
Size: 814 Bytes
Versions: 24
Compression:
Stored size: 814 Bytes
Contents
module RubyToBlock module Block class HardwareSmalrubotSensorValue < Value include CharacterOperation include HardwareOperation # rubocop:disable LineLength blocknize ['^\s*', CHAR_RE, SMALRUBOT_RE, '.', LOR_RE, '_sensor_value', '\s*$'].join(''), value: true # rubocop:enable LineLength def self.process_match_data(md, context) md2 = regexp.match(md[type]) character = get_character(context, md2[1]) return false if context.receiver && context.receiver != character block = new(fields: { LOR: md2[3] }) block.smalrubot_name = md2[2] context.add_value(block) block.character = character true end end end end
Version data entries
24 entries across 24 versions & 1 rubygems