Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Pathname#executable_real?
() -> bool
executable_real? → true or false
pathname_builtin.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/pathname_builtin.rb, line 2365
def executable_real?() FileTest.executable_real?(@path) end
Like Pathname#executable?, but checks against the real owner/group instead of the effective owner/group.