Results for: "Data"

If stat is readable by others, returns an integer representing the file permission bits of stat. Returns nil otherwise. The meaning of the bits is platform dependent; on Unix systems, see stat(2).

m = File.stat("/etc/passwd").world_readable?  #=> 420
sprintf("%o", m)                              #=> "644"

Returns true if stat is writable by the real user id of this process.

File.stat("testfile").writable_real?   #=> true

If stat is writable by others, returns an integer representing the file permission bits of stat. Returns nil otherwise. The meaning of the bits is platform dependent; on Unix systems, see stat(2).

m = File.stat("/tmp").world_writable?         #=> 511
sprintf("%o", m)                              #=> "777"

Same as executable?, but tests using the real owner of the process.

Returns the absolute path of this instruction sequence.

nil if the iseq was evaluated from a string.

For example, using ::compile_file:

# /tmp/method.rb
def hello
  puts "hello, world"
end

# in irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path #=> /tmp/method.rb
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Private setter for the path of the URI::FTP.

def comment_targets: () -> Array[Node | Location]

attr_reader operator_loc: Location

def comment_targets: () -> Array[Node | Location]

attr_reader operator_loc: Location

def comment_targets: () -> Array[Node | Location]

Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc.

def comment_targets: () -> Array[Node | Location]

attr_reader operator_loc: Location

def comment_targets: () -> Array[Node | Location]

attr_reader operator_loc: Location

def comment_targets: () -> Array[Node | Location]

Search took: 7ms  ·  Total Results: 2131