Sha256: a84c700fd96d1f6d3d154f273884174fee74477ae0fe31c28e9ed261d54db0ef
Contents?: true
Size: 637 Bytes
Versions: 4
Compression:
Stored size: 637 Bytes
Contents
# -*- coding: utf-8 -*- module RubyToBlock module Block class HardwareSmalrubotV3MotorSetSpeed < CharacterMethodCall include HardwareOperation blocknize '^\s*' + CHAR_RE + 'smalrubot_v3\.' + LOR_RE + '_motor_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: { LOR: md2[2] }), SPEED: md2[3]) true end end end end
Version data entries
4 entries across 4 versions & 1 rubygems