module Monkey::Ext::String
Public Instance Methods
absolute_path?()
click to toggle source
# File lib/monkey/ext/string.rb, line 25 def absolute_path? Pathname(self).absolute? end
atime()
click to toggle source
# File lib/monkey/ext/string.rb, line 21 def atime Pathname(self).atime end
basename()
click to toggle source
# File lib/monkey/ext/string.rb, line 29 def basename Pathname(self).basename.to_s end
blockdev?()
click to toggle source
# File lib/monkey/ext/string.rb, line 33 def blockdev? Pathname(self).blockdev? end
cased_path()
click to toggle source
# File lib/monkey/ext/string.rb, line 61 def cased_path Pathname(self).cased_path.to_s end
chardev?()
click to toggle source
# File lib/monkey/ext/string.rb, line 37 def chardev? Pathname(self).chardev? end
chdir(&block)
click to toggle source
# File lib/monkey/ext/string.rb, line 65 def chdir(&block) Pathname(self).chdir(&block) end
cleanpath()
click to toggle source
# File lib/monkey/ext/string.rb, line 41 def cleanpath Pathname(self).cleanpath.to_s end
ctime()
click to toggle source
# File lib/monkey/ext/string.rb, line 45 def ctime Pathname(self).ctime end
directory?()
click to toggle source
# File lib/monkey/ext/string.rb, line 53 def directory? Pathname(self).directory? end
directory_children()
click to toggle source
# File lib/monkey/ext/string.rb, line 49 def directory_children Pathname(self).children end
dirname()
click to toggle source
# File lib/monkey/ext/string.rb, line 57 def dirname Pathname(self).dirname.to_s end
expand_path()
click to toggle source
# File lib/monkey/ext/string.rb, line 69 def expand_path Pathname(self).expand_path.to_s end
extname()
click to toggle source
# File lib/monkey/ext/string.rb, line 73 def extname Pathname(self).extname.to_s end
file?()
click to toggle source
# File lib/monkey/ext/string.rb, line 77 def file? Pathname(self).file? end
file_executable?()
click to toggle source
# File lib/monkey/ext/string.rb, line 103 def file_executable? Pathname(self).executable? end
file_executable_real?()
click to toggle source
# File lib/monkey/ext/string.rb, line 107 def file_executable_real? Pathname(self).executable_real? end
file_exist?()
click to toggle source
# File lib/monkey/ext/string.rb, line 81 def file_exist? Pathname(self).exist? end
Also aliased as: file_exists?
file_grpowned?()
click to toggle source
# File lib/monkey/ext/string.rb, line 87 def file_grpowned? Pathname(self).grpowned? end
file_join(other)
click to toggle source
# File lib/monkey/ext/string.rb, line 111 def file_join(other) Pathname(self).join(other.to_s).to_s end
Also aliased as: /
file_open(mode = 'r', &block)
click to toggle source
# File lib/monkey/ext/string.rb, line 117 def file_open(mode = 'r', &block) Pathname(self).open(mode = 'r', &block) end
file_owned?()
click to toggle source
# File lib/monkey/ext/string.rb, line 91 def file_owned? Pathname(self).owned? end
file_readable?()
click to toggle source
# File lib/monkey/ext/string.rb, line 121 def file_readable? Pathname(self).readable? end
file_readable_real?()
click to toggle source
# File lib/monkey/ext/string.rb, line 125 def file_readable_real? Pathname(self).readable_real? end
file_relative?()
click to toggle source
# File lib/monkey/ext/string.rb, line 129 def file_relative? Pathname(self).relative? end
file_size?()
click to toggle source
# File lib/monkey/ext/string.rb, line 95 def file_size? Pathname(self).size? end
file_sticky?()
click to toggle source
# File lib/monkey/ext/string.rb, line 99 def file_sticky? Pathname(self).sticky? end
file_writable?()
click to toggle source
# File lib/monkey/ext/string.rb, line 133 def file_writable? Pathname(self).writable? end
file_writable_real?()
click to toggle source
# File lib/monkey/ext/string.rb, line 137 def file_writable_real? Pathname(self).writable_real? end
file_zero?()
click to toggle source
# File lib/monkey/ext/string.rb, line 141 def file_zero? Pathname(self).zero? end
ftype()
click to toggle source
# File lib/monkey/ext/string.rb, line 145 def ftype Pathname(self).ftype.to_s end
mountpoint?()
click to toggle source
# File lib/monkey/ext/string.rb, line 149 def mountpoint? Pathname(self).mountpoint? end
mtime()
click to toggle source
# File lib/monkey/ext/string.rb, line 153 def mtime Pathname(self).mtime end
pipe?()
click to toggle source
# File lib/monkey/ext/string.rb, line 157 def pipe? Pathname(self).pipe? end
realpath()
click to toggle source
# File lib/monkey/ext/string.rb, line 161 def realpath Pathname(self).realpath.to_s end
root?()
click to toggle source
# File lib/monkey/ext/string.rb, line 165 def root? Pathname(self).root? end
socket?()
click to toggle source
# File lib/monkey/ext/string.rb, line 169 def socket? Pathname(self).socket? end
symlink?()
click to toggle source
# File lib/monkey/ext/string.rb, line 173 def symlink? Pathname(self).symlink? end
to_version()
click to toggle source
# File lib/monkey/ext/string.rb, line 10 def to_version dup.to_version! end
to_version!()
click to toggle source
# File lib/monkey/ext/string.rb, line 14 def to_version! extend Monkey::Version self end