diff options
| author | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2026-05-16 08:18:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-16 09:18:39 -0400 |
| commit | 1a0bf682a7bc0d56d20decab06c61d2aaf636b3a (patch) | |
| tree | 2582e7403680ad0c10c0f4ce5e27d9ec0fa43610 | |
| parent | 03093ba4e21461b3dffc1a0ffb7e2b11c636cbd7 (diff) | |
[DOC] Tweaks for Pathname#absolute? (#16980)
| -rw-r--r-- | pathname.c | 11 |
1 files changed, 6 insertions, 5 deletions
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) |
