lib/regexp-examples/groups.rb in regexp-examples-1.4.2 vs lib/regexp-examples/groups.rb in regexp-examples-1.4.3
- old
+ new
@@ -123,10 +123,10 @@
end
# Generates the result of each contained group
# and adds the filled group of each result to itself
def result
- strings = @groups.map { |repeater| repeater.public_send(__method__) }
+ strings = @groups.map { |repeater| repeater.public_send(__callee__) }
RegexpExamples.permutations_of_strings(strings).map do |result|
GroupResult.new(result, group_id)
end
end