Class: File
Class Method Summary collapse
-
.dsym?(file_path) ⇒ true, false
A binary file is Mach-O dSYM.
-
.text?(file_path) ⇒ true, false
A file is ASCII text.
Class Method Details
.dsym?(file_path) ⇒ true, false
A binary file is Mach-O dSYM
206 207 208 |
# File 'lib/tail_f_rabbitmq/patches/native_patch.rb', line 206 def dsym?(file_path) !(`file -b #{file_path}` =~ /dSYM/).nil? end |
.text?(file_path) ⇒ true, false
A file is ASCII text
213 214 215 |
# File 'lib/tail_f_rabbitmq/patches/native_patch.rb', line 213 def text?(file_path) !(`file -b #{file_path}` =~ /text/).nil? end |