@JRubyMethod(name = "executable_real?") public IRubyObject executableReal_p() { return getRuntime().newBoolean(stat.isExecutableReal()); }
@JRubyMethod(name = "executable_real?") public IRubyObject executableReal_p() { return getRuntime().newBoolean(stat.isExecutableReal()); }
@JRubyMethod(name = "executable_real?") public IRubyObject executableReal_p() { checkInitialized(); return getRuntime().newBoolean(stat.isExecutableReal()); }
@JRubyMethod(name = "executable_real?") public IRubyObject executableReal_p() { checkInitialized(); return getRuntime().newBoolean(stat.isExecutableReal()); }
@JRubyMethod(name = "executable_real?", required = 1, module = true) public static IRubyObject executable_real_p(IRubyObject recv, IRubyObject filename) { Ruby runtime = recv.getRuntime(); FileResource file = fileResource(filename); return runtime.newBoolean(file.exists() && file.stat(runtime.getPosix()).isExecutableReal()); }
@JRubyMethod(name = "executable_real?", required = 1, module = true) public static IRubyObject executable_real_p(IRubyObject recv, IRubyObject filename) { Ruby runtime = recv.getRuntime(); JRubyFile file = file(filename); return runtime.newBoolean(file.exists() && runtime.getPosix().stat(file.getAbsolutePath()).isExecutableReal()); }
@JRubyMethod(name = "executable_real?", required = 1, module = true) public static IRubyObject executable_real_p(IRubyObject recv, IRubyObject filename) { if (recv.getRuntime().getPosix().isNative()) { FileStat stat = fileResource(filename).stat(); return recv.getRuntime().newBoolean(stat != null && stat.isExecutableReal()); } else { return executable_p(recv, filename); } }
@JRubyMethod(name = "executable_real?", required = 1, module = true) public static IRubyObject executable_real_p(IRubyObject recv, IRubyObject filename) { if (recv.getRuntime().getPosix().isNative()) { FileStat stat = fileResource(filename).stat(); return recv.getRuntime().newBoolean(stat != null && stat.isExecutableReal()); } else { return executable_p(recv, filename); } }