Sha256: b952c85a00df238a97f65abaf3e48b85a5466b5879798493782cee725b1afb5f
Contents?: true
Size: 410 Bytes
Versions: 18
Compression:
Stored size: 410 Bytes
Contents
# -*- coding: utf-8 -*- module RubyToBlock module Block class HardwareTwoWheelDriveCarCommands < Value blocknize '^\s*"(forward|backward|turn_left|turn_right|stop)"\s*$', value: true, priority: 1 def self.process_match_data(md, context) md2 = regexp.match(md[type]) context.add_value(new(fields: { COMMAND: md2[1] })) true end end end end
Version data entries
18 entries across 18 versions & 1 rubygems