lib/mustermann/simple_match.rb in mustermann-0.3.1 vs lib/mustermann/simple_match.rb in mustermann-0.4.0
- old
+ new
@@ -24,7 +24,12 @@
# @return [nil] imitates MatchData interface
def [](*args)
captures[*args]
end
+
+ # @return [String] string representation
+ def inspect
+ "#<%p %p>" % [self.class, @string]
+ end
end
end