Skip to content

Commit 7be18b5

Browse files
hsbtclaude
andcommitted
Remove lib/pathname.rb and rb_provide("pathname")
All methods previously defined in lib/pathname.rb have been moved to pathname_builtin.rb. Remove the now-empty lib/pathname.rb and add rb_provide("pathname") so that require "pathname" succeeds as a no-op. Also move the author and copyright header from the deleted file into pathname_builtin.rb. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5fda962 commit 7be18b5

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

lib/pathname.rb

Lines changed: 0 additions & 11 deletions
This file was deleted.

pathname.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ InitVM_pathname(void)
120120
rb_define_method(rb_cPathname, "sub", path_sub, -1);
121121

122122
rb_provide("pathname.so");
123+
rb_provide("pathname");
123124
}
124125

125126
void

pathname_builtin.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# frozen_string_literal: true
22
#
3+
# = pathname.rb
4+
#
5+
# Object-Oriented Pathname Class
6+
#
7+
# Author:: Tanaka Akira <akr@m17n.org>
8+
# Documentation:: Author and Gavin Sinclair
9+
#
10+
# For documentation, see class Pathname.
11+
#
312
# A \Pathname object contains a string directory path or filepath;
413
# it does not represent a corresponding actual file or directory
514
# -- which in fact may or may not exist.

0 commit comments

Comments
 (0)