Sha256: 3ca87d95d677a2044951f420a86ac533822cf35eac8799e76fb47d19fe6abcc7
Contents?: true
Size: 743 Bytes
Versions: 42
Compression:
Stored size: 743 Bytes
Contents
# -*- coding: utf-8 -*- module RubyToBlock module Block class HardwareTwoWheelDriveCarSetSpeed < CharacterMethodCall include HardwareOperation blocknize '^\s*' + CHAR_RE + 'two_wheel_drive_car\(' + TWO_WHEEL_DRIVE_CAR_PIN_RE + '\)\.' + LOR_RE + '_speed\s*=\s*(\S+)\s*$', statement: true, inline: true def self.process_match_data(md, context) md2 = regexp.match(md[type]) add_character_method_call_block(context, md2[1], new(fields: { PIN: md2[2], LOR: md2[3] }), SPEED: md2[4]) true end end end end
Version data entries
42 entries across 42 versions & 1 rubygems