module SheepAst::AnyMatchUtil
to include exact match util @api private
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/sheep_ast/match/any_match.rb, line 61 def initialize super() @any_matches = {} @global_matches[MatchKind::Any.rank] = @any_matches @methods_array << prio(160, method(:check_any_match)) end
Public Instance Methods
check_any_match(data)
click to toggle source
# File lib/sheep_ast/match/any_match.rb, line 71 def check_any_match(data) match = @any_matches['any'] return nil if match.nil? match.init match.matched(data) # match.matched_end(data) return match end