Sha256: 6230a0c5dd820beb8247416060ceee6ccf1618dddf18a21344c99548f5ddca9a

Contents?: true

Size: 465 Bytes

Versions: 4

Compression:

Stored size: 465 Bytes

Contents

module FunWith
  module Files
    # view and change file permissions
    module FilePermissionMethods
      def readable?
        File.readable?( self )
      end
      
      def writable?
        File.writable?( self )
      end
      
      def executable?
        File.executable?( self )
      end
      
      def chmod( mode, opts = {} )
        FileUtils.chmod( mode, self, narrow_options( opts, FileUtils::OPT_TABLE["chmod"] ) )
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fun_with_files-0.0.15 ./lib/fun_with/files/file_permission_methods.rb
fun_with_files-0.0.14 ./lib/fun_with/files/file_permission_methods.rb
fun_with_files-0.0.13 ./lib/fun_with/files/file_permission_methods.rb
fun_with_files-0.0.12 ./lib/fun_with/files/file_permission_methods.rb