Skip to content

Commit

Permalink
remove class methods
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokaro committed May 28, 2024
1 parent 769d6e7 commit 076b589
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions bin/ocran
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,6 @@ module Ocran
# is case sensitive and doesn't handle paths with mixed path
# separators.
class Pathname < ::Pathname
def Pathname.pwd
Pathname.new(Dir.pwd)
end

def Pathname.glob(pattern, flags = 0)
if block_given?
Dir.glob(pattern, flags) { |s| yield Pathname.new(s) }
else
ary = Dir.glob(pattern, flags)
ary.map! { |s| Pathname.new(s) }
ary
end
end

# Compares two paths for equality based on the case sensitivity of the
# Ruby execution environment's file system.
# If the file system is case-insensitive, it performs a case-insensitive
Expand Down

0 comments on commit 076b589

Please sign in to comment.