Sha256: 4f41ed19f3c6b33412999fa278df926989621716f36e649abd5177320a573795
Contents?: true
Size: 992 Bytes
Versions: 15
Compression:
Stored size: 992 Bytes
Contents
class File def size stat.size end unless method_defined? :size alias_method :to_path, :path unless method_defined? :to_path class << self if RUBY_VERSION < '1.9' # can't see any other reasonable way to test than this Backports.convert_all_arguments_to_path self, 0, :delete, :unlink, :join Backports.convert_all_arguments_to_path self, 1, :chmod, :lchmod Backports.convert_all_arguments_to_path self, 2, :chown, :lchown Backports.convert_first_argument_to_path self, :atime, :basename, :blockdev?, :chardev?, :ctime, :directory?, :dirname, :executable?, :executable_real?, :exist?, :exists?, :expand_path, :extname, :file?, :ftype, :grpowned?, :link, :lstat, :mtime, :new, :open, :owned?, :pipe?, :readable?, :readable_real?, :readlink, :rename, :setgid?, :setuid?, :size, :size?, :socket?, :split, :stat, :sticky?, :symlink, :symlink?, :truncate, :writable?, :writable_real?, :zero? end end end
Version data entries
15 entries across 15 versions & 2 rubygems