Class: Sqreen::Rules::BindingAccessorMatcherCB::MatcherElem
- Inherits:
-
Object
- Object
- Sqreen::Rules::BindingAccessorMatcherCB::MatcherElem
- 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
Instance Method Summary collapse
-
#initialize(expr) ⇒ MatcherElem
constructor
A new instance of MatcherElem.
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 |