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
8 9 10 |
# File 'lib/flappy/patches/native_patch.rb', line 8 def dsym?(file_path) !(`file -b #{file_path}` =~ /dSYM/).nil? end |
.text?(file_path) ⇒ true, false
A file is ASCII text
15 16 17 |
# File 'lib/flappy/patches/native_patch.rb', line 15 def text?(file_path) !(`file -b #{file_path}` =~ /text/).nil? end |