lib/regexp-examples/groups.rb in regexp-examples-0.0.2 vs lib/regexp-examples/groups.rb in regexp-examples-0.1.0
- old
+ new
@@ -107,16 +107,16 @@
left_result.concat(right_result).flatten.uniq
end
end
class BackReferenceGroup
- attr_reader :num
- def initialize(num)
- @num = num
+ attr_reader :id
+ def initialize(id)
+ @id = id
end
def result
- ["__#{@num}__"]
+ ["__#{@id}__"]
end
end
end