class SheepAst::ScopedMatch
Scoped match instanc
@see new
Public Instance Methods
kind?()
click to toggle source
# File lib/sheep_ast/match/scoped_match.rb, line 37 def kind? return MatchKind::Condition end
match_end(expr1, expr2)
click to toggle source
# File lib/sheep_ast/match/scoped_match.rb, line 17 def match_end(expr1, expr2) if @options[:regex_end] reg_match(expr1, expr2) else expr1 == expr2 end end
match_start(expr1, expr2)
click to toggle source
# File lib/sheep_ast/match/scoped_match.rb, line 27 def match_start(expr1, expr2) if kind? == MatchKind::Condition expr1 == expr2 else reg_match(expr1, expr2) end end