Sha256: 5c5d56daa988e023d450ca39d399ebb5b246c3f888f9a7f8e8dbcc5e0d6aa96f
Contents?: true
Size: 659 Bytes
Versions: 4
Compression:
Stored size: 659 Bytes
Contents
module RubyToBlock module Block class HardwareSmalrubotV3MotorSpeed < Value include CharacterOperation include HardwareOperation blocknize '^\s*' + CHAR_RE + 'smalrubot_v3\.' + LOR_RE + '_motor_speed\s*$', value: true 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
4 entries across 4 versions & 1 rubygems