Sha256: 8c0b87e4bfb17df8f10b65c12a3a48af0c9db9c4c10d13dca864f1b08ee8eed3
Contents?: true
Size: 363 Bytes
Versions: 10
Compression:
Stored size: 363 Bytes
Contents
require_relative "../../../core_ext" class Ecu class SignalList A2LREGEXP = %r{/begin MEASUREMENT\s+([\S]+)\s+"([^"]*)"} def self.from_a2l(str) str.gsub!(%r{/\*.*?\*/}, "") signals = str.scan(A2LREGEXP).map do |name, description| Ecu::Signal.new(name: name, description: description) end new(signals) end end end
Version data entries
10 entries across 10 versions & 1 rubygems