module FunWith::Files::FilePermissionMethods
view and change file permissions
Public Instance Methods
chmod( mode, opts = {} )
click to toggle source
# File lib/fun_with/files/file_permission_methods.rb, line 17 def chmod( mode, opts = {} ) FileUtils.chmod( mode, self, narrow_options( opts, FileUtils::OPT_TABLE["chmod"] ) ) end
executable?()
click to toggle source
# File lib/fun_with/files/file_permission_methods.rb, line 13 def executable? File.executable?( self ) end
readable?()
click to toggle source
# File lib/fun_with/files/file_permission_methods.rb, line 5 def readable? File.readable?( self ) end
writable?()
click to toggle source
# File lib/fun_with/files/file_permission_methods.rb, line 9 def writable? File.writable?( self ) end