aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/optparse.rb2
-rw-r--r--lib/pathname.rb4
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb
index 4a979a78d1..761504a82f 100644
--- a/lib/optparse.rb
+++ b/lib/optparse.rb
@@ -1584,7 +1584,6 @@ Base class of exceptions from ((<OptionParser>))
Returns inspection string.
--- OptionParser::ParseError#message
--- OptionParser::ParseError#to_s
---- OptionParser::ParseError#to_str
Default stringizing method to emit standard error message.
=end #'#"#`#
class ParseError < RuntimeError
@@ -1625,7 +1624,6 @@ Base class of exceptions from ((<OptionParser>))
end
alias to_s message
- alias to_str message
end
=begin
diff --git a/lib/pathname.rb b/lib/pathname.rb
index a6d0599610..c87a6e91ce 100644
--- a/lib/pathname.rb
+++ b/lib/pathname.rb
@@ -229,6 +229,10 @@ class Pathname
"#<#{self.class}:#{@path}>"
end
+ def to_open(*args) # :nodoc:
+ Kernel::open(@path, *args)
+ end
+
#
# Returns clean pathname of +self+ with consecutive slashes and useless dots
# removed. The filesystem is not accessed.