Sha256: 2f2f51b1225e7f3130074d5a97ef3827fe7a1d95b752b51d2c84788ecb0fb468
Contents?: true
Size: 772 Bytes
Versions: 6
Compression:
Stored size: 772 Bytes
Contents
module RubyToBlock module Block class HardwareSmalrubotS1IrPhotoreflectorValue < Value include CharacterOperation include HardwareOperation # rubocop:disable LineLength blocknize '^\s*' + CHAR_RE + 'smalrubot_s1\.' + LOR_RE + '_ir_photoreflector_value' + '\s*$', 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[2] }) context.add_value(block) block.character = character true end end end end
Version data entries
6 entries across 6 versions & 1 rubygems