module RegexpExamples::GroupWithIgnoreCase
A helper method for mixing in to Group classes… Needed for generating a complete results set when the ignorecase regexp option has been set
Attributes
ignorecase[R]
Public Instance Methods
result()
click to toggle source
Calls superclass method
# File lib/regexp-examples/groups.rb, line 28 def result group_result = super if ignorecase group_result .to_a # In case of lazy enumerator .concat(group_result.to_a.map(&:swapcase)) .uniq else group_result end end