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