Module: RegexList::Assertions
- Defined in:
- lib/regex_list.rb
Instance Attribute Summary collapse
-
#regex_list ⇒ Object
Returns the value of attribute regex_list.
Instance Method Summary collapse
Instance Attribute Details
#regex_list ⇒ Object
Returns the value of attribute regex_list.
67 68 69 |
# File 'lib/regex_list.rb', line 67 def regex_list @regex_list end |
Instance Method Details
#assert_regex_list_score(input, ref, cache = true) ⇒ Object
68 69 70 71 72 73 74 |
# File 'lib/regex_list.rb', line 68 def assert_regex_list_score ( input, ref, cache=true ) if cache assert_equal ref, @regex_list.score(input) else assert_equal ref, @regex_list.score_without_cache(input) end end |