Sha256: cb8853000512f52f9ff31255ad5bd9631b492da6f25c34dbe27d8d209464de9f

Contents?: true

Size: 1.73 KB

Versions: 66

Compression:

Stored size: 1.73 KB

Contents

# `FileTest` implements file test operations similar to those used in
# `File::Stat` . It exists as a standalone module, and its methods are
# also insinuated into the `File` class. (Note that this is not done by
# inclusion: the interpreter cheats).
module FileTest
  def self.blockdev?: (String | IO file_name) -> bool

  def self.chardev?: (String | IO file_name) -> bool

  def self.directory?: (String | IO file_name) -> bool

  def self.empty?: (String | IO file_name) -> bool

  def self.executable?: (String | IO file_name) -> bool

  def self.executable_real?: (String | IO file_name) -> bool

  def self.exist?: (String | IO file_name) -> bool

  def self.exists?: (String | IO file_name) -> bool

  def self.file?: (String | IO file) -> bool

  def self.grpowned?: (String | IO file_name) -> bool

  def self.identical?: (String | IO file_1, String | IO file_2) -> bool

  def self.owned?: (String | IO file_name) -> bool

  def self.pipe?: (String | IO file_name) -> bool

  def self.readable?: (String | IO file_name) -> bool

  def self.readable_real?: (String | IO file_name) -> bool

  def self.setgid?: (String | IO file_name) -> bool

  def self.setuid?: (String | IO file_name) -> bool

  def self.size: (String | IO file_name) -> Integer

  def self.size?: (String | IO file_name) -> Integer?

  def self.socket?: (String | IO file_name) -> bool

  def self.sticky?: (String | IO file_name) -> bool

  def self.symlink?: (String | IO file_name) -> bool

  def self.world_readable?: (String | IO file_name) -> Integer?

  def self.world_writable?: (String | IO file_name) -> Integer?

  def self.writable?: (String | IO file_name) -> bool

  def self.writable_real?: (String | IO file_name) -> bool

  def self.zero?: (String | IO file_name) -> bool
end

Version data entries

66 entries across 66 versions & 2 rubygems

Version Path
rbs-1.3.1 core/file_test.rbs
rbs-1.3.0 core/file_test.rbs
rbs-1.2.1 core/file_test.rbs
rbs-1.2.0 core/file_test.rbs
rbs-1.1.1 core/file_test.rbs
rbs-1.1.0 core/file_test.rbs
rbs-1.0.6 core/file_test.rbs
rbs-1.0.5 core/file_test.rbs
rbs-1.0.4 core/file_test.rbs
rbs-1.0.3 core/file_test.rbs
rbs-1.0.2 core/file_test.rbs
rbs-1.0.1 core/file_test.rbs
rbs-1.0.0 core/file_test.rbs
rbs-1.0.0.pre2 core/file_test.rbs
rbs-1.0.0.pre core/file_test.rbs
rbs-0.20.1 core/file_test.rbs
rbs-0.20.0 core/file_test.rbs
rbs-0.19.0 core/file_test.rbs
rbs-0.18.1 core/file_test.rbs
rbs-0.18.0 core/file_test.rbs