lib/defmastership/matching_line.rb in defmastership-1.0.19 vs lib/defmastership/matching_line.rb in defmastership-1.1.0

- old
+ new

@@ -1,11 +1,12 @@ # Copyright (c) 2020 Jerome Arbez-Gindre # frozen_string_literal: true -module DefMastership - # a composite class +module Defmastership + # a composite class storing a line and the corresponding match MatchingLine = Struct.new(:match, :line) do + # Act as a Hasg and delegate to the Match def [](key) value = match[key] return value if value super