class Ecu class SignalList DBCREGEXP = / SG_ ([A-Z_0-9]+) : .*/ def self.from_dbc(file_path) new(File.open(file_path, "rb").read.scan(DBCREGEXP).map do |name| Ecu::Signal.new(name: name.first) end.reject { |signal| signal.name =~ /TA|TPCI/ }) end end end