Class: Sqreen::Rules::BindingAccessorMatcherCB::MatcherElem

Inherits:
Object
  • Object
show all
Includes:
Matcher
Defined in:
lib/sqreen/rules/binding_accessor_matcher_cb.rb

Overview

matcher on one elem

Constant Summary

Constants included from Matcher

Matcher::ANYWHERE_OPT, Matcher::MATCH_PREDICATE

Instance Attribute Summary

Attributes included from Matcher

#min_size

Instance Method Summary collapse

Methods included from Matcher

#match, #prepare, prepare_re_pattern

Constructor Details

#initialize(expr) ⇒ MatcherElem

Returns a new instance of MatcherElem.



20
21
22
# File 'lib/sqreen/rules/binding_accessor_matcher_cb.rb', line 20

def initialize(expr)
  prepare([expr])
end