Sha256: 2fe16cadb1df06dfdf75eaa3d9bf0d8a8c9c1348278a72dc5b25ed861e46445d
Contents?: true
Size: 675 Bytes
Versions: 4
Compression:
Stored size: 675 Bytes
Contents
module RubyToBlock module Block class HardwareSmalrubotS1DcMotorPowerRatio < Value include CharacterOperation include HardwareOperation blocknize '^\s*' + CHAR_RE + 'smalrubot_s1\.' + LOR_RE + '_dc_motor_power_ratio\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