From 1a0bf682a7bc0d56d20decab06c61d2aaf636b3a Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Sat, 16 May 2026 08:18:39 -0500 Subject: [DOC] Tweaks for Pathname#absolute? (#16980) --- pathname.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'pathname.c') diff --git a/pathname.c b/pathname.c index ec026c1333..b12f640373 100644 --- a/pathname.c +++ b/pathname.c @@ -156,13 +156,14 @@ path_root_p(VALUE self) * * Returns whether +self+ contains an absolute path: * - * Pathname.new('/home').absolute? # => true - * Pathname.new('lib').absolute? # => false + * Pathname('/home').absolute? # => true + * Pathname('lib').absolute? # => false * - * OS-dependent for some paths: + * The result is OS-dependent for some paths: + * + * Pathname('C:/').absolute? # => true # On Windows. + * Pathname('C:/').absolute? # => false # Elsewhere. * - * Pathname.new('C:/').absolute? # => true # On Windows. - * Pathname.new('C:/').absolute? # => false # Elsewhere. */ static VALUE path_absolute_p(VALUE self) -- cgit v1.2.3