module SheepAst::ExactGroupMatchUtil
Match to handle exact group match
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/sheep_ast/match/exact_group_match.rb, line 63 def initialize @exact_group_matches = {} @global_matches[MatchKind::ExactGroup.rank] = @exact_group_matches @methods_array << prio(150, method(:check_exact_group_match)) super() end
Public Instance Methods
check_exact_group_match(data)
click to toggle source
# File lib/sheep_ast/match/exact_group_match.rb, line 73 def check_exact_group_match(data) @exact_group_matches.each do |_, a_chain| test = a_chain.lookup(data) next if test.nil? a_chain.init a_chain.matched(data) # a_chain.matched_end(data) return a_chain end return nil end