lib/ronin/url.rb in ronin-1.4.0.rc1 vs lib/ronin/url.rb in ronin-1.4.0.rc2
- old
+ new
@@ -1,7 +1,7 @@
#
-# Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
+# Copyright (c) 2006-2012 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# This file is part of Ronin.
#
# Ronin is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -498,9 +498,23 @@
#
# @api public
#
def to_s
self.to_uri.to_s
+ end
+
+ #
+ # Inspects the URL.
+ #
+ # @return [String]
+ # The inspected URL.
+ #
+ # @since 1.4.0
+ #
+ # @api public
+ #
+ def inspect
+ "#<#{self.class}: #{self}>"
end
protected
#