Skip to content

Commit

Permalink
self.Pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokaro committed May 29, 2024
1 parent 9292071 commit 52f75d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/ocran
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ module Ocran
require_relative "../lib/ocran/refine_pathname"
using RefinePathname

def self.Pathname(obj)
if obj.is_a?(Pathname)
obj
else
Pathname.new(obj)
end
end

IGNORE_MODULE_NAMES = /\A(enumerator.so|rational.so|complex.so|fiber.so|thread.rb|ruby2_keywords.rb)\z/

GEM_SCRIPT_RE = /\.rbw?$/
Expand Down

0 comments on commit 52f75d3

Please sign in to comment.