Module: FunWith::Files::FilePermissionMethods
- Defined in:
- lib/fun_with/files/file_permission_methods.rb
Overview
view and change file permissions
Instance Method Summary collapse
Instance Method Details
#chmod(mode, options) ⇒ Object
17 18 19 |
# File 'lib/fun_with/files/file_permission_methods.rb', line 17 def chmod( mode, ) FileUtils.chmod( mode, self, = {} ) end |
#executable? ⇒ Boolean
13 14 15 |
# File 'lib/fun_with/files/file_permission_methods.rb', line 13 def executable? File.executable?( self ) end |
#readable? ⇒ Boolean
5 6 7 |
# File 'lib/fun_with/files/file_permission_methods.rb', line 5 def readable? File.readable?( self ) end |
#writable? ⇒ Boolean
9 10 11 |
# File 'lib/fun_with/files/file_permission_methods.rb', line 9 def writable? File.writable?( self ) end |