module Monkey::Ext::String
Public Instance Methods
Source
# File lib/monkey/ext/string.rb, line 25 def absolute_path? Pathname(self).absolute? end
Source
# File lib/monkey/ext/string.rb, line 29 def basename Pathname(self).basename.to_s end
Source
# File lib/monkey/ext/string.rb, line 33 def blockdev? Pathname(self).blockdev? end
Source
# File lib/monkey/ext/string.rb, line 61 def cased_path Pathname(self).cased_path.to_s end
Source
# File lib/monkey/ext/string.rb, line 37 def chardev? Pathname(self).chardev? end
Source
# File lib/monkey/ext/string.rb, line 65 def chdir(&block) Pathname(self).chdir(&block) end
Source
# File lib/monkey/ext/string.rb, line 41 def cleanpath Pathname(self).cleanpath.to_s end
Source
# File lib/monkey/ext/string.rb, line 53 def directory? Pathname(self).directory? end
Source
# File lib/monkey/ext/string.rb, line 49 def directory_children Pathname(self).children end
Source
# File lib/monkey/ext/string.rb, line 57 def dirname Pathname(self).dirname.to_s end
Source
# File lib/monkey/ext/string.rb, line 69 def expand_path Pathname(self).expand_path.to_s end
Source
# File lib/monkey/ext/string.rb, line 73 def extname Pathname(self).extname.to_s end
Source
# File lib/monkey/ext/string.rb, line 103 def file_executable? Pathname(self).executable? end
Source
# File lib/monkey/ext/string.rb, line 107 def file_executable_real? Pathname(self).executable_real? end
Source
# File lib/monkey/ext/string.rb, line 81 def file_exist? Pathname(self).exist? end
Also aliased as: file_exists?
Source
# File lib/monkey/ext/string.rb, line 87 def file_grpowned? Pathname(self).grpowned? end
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: /
Source
# File lib/monkey/ext/string.rb, line 117 def file_open(mode = 'r', &block) Pathname(self).open(mode = 'r', &block) end
Source
# File lib/monkey/ext/string.rb, line 91 def file_owned? Pathname(self).owned? end
Source
# File lib/monkey/ext/string.rb, line 121 def file_readable? Pathname(self).readable? end
Source
# File lib/monkey/ext/string.rb, line 125 def file_readable_real? Pathname(self).readable_real? end
Source
# File lib/monkey/ext/string.rb, line 129 def file_relative? Pathname(self).relative? end
Source
# File lib/monkey/ext/string.rb, line 95 def file_size? Pathname(self).size? end
Source
# File lib/monkey/ext/string.rb, line 99 def file_sticky? Pathname(self).sticky? end
Source
# File lib/monkey/ext/string.rb, line 133 def file_writable? Pathname(self).writable? end
Source
# File lib/monkey/ext/string.rb, line 137 def file_writable_real? Pathname(self).writable_real? end
Source
# File lib/monkey/ext/string.rb, line 141 def file_zero? Pathname(self).zero? end
Source
# File lib/monkey/ext/string.rb, line 149 def mountpoint? Pathname(self).mountpoint? end
Source
# File lib/monkey/ext/string.rb, line 161 def realpath Pathname(self).realpath.to_s end
Source
# File lib/monkey/ext/string.rb, line 173 def symlink? Pathname(self).symlink? end
Source
# File lib/monkey/ext/string.rb, line 14 def to_version! extend Monkey::Version self end