class DuplicatedFilenameChecker::FileProfile
Public Class Methods
new(file_path)
click to toggle source
# File lib/duplicated_filename_checker/file_profile.rb, line 4 def initialize(file_path) @file_path = file_path end
Public Instance Methods
basename()
click to toggle source
# File lib/duplicated_filename_checker/file_profile.rb, line 8 def basename File.basename @file_path end
md5_digest()
click to toggle source
# File lib/duplicated_filename_checker/file_profile.rb, line 16 def md5_digest Digest::MD5.file(path).to_s end
path()
click to toggle source
# File lib/duplicated_filename_checker/file_profile.rb, line 12 def path File.absolute_path @file_path end
stat()
click to toggle source
# File lib/duplicated_filename_checker/file_profile.rb, line 20 def stat File.stat @file_path end