# Copyright (c) 2020 Jerome Arbez-Gindre # frozen_string_literal: true module DefMastership # a composite class MatchingLine = Struct.new(:match, :line) do def [](key) value = match[key] return value if value super end end public_constant :MatchingLine end