class File
Public Class Methods
dsym?(file_path)
click to toggle source
A binary file is Mach-O dSYM
@return [true, false]
# File lib/flappy/patches/native_patch.rb, line 8 def dsym?(file_path) !(`file -b #{file_path}` =~ /dSYM/).nil? end
text?(file_path)
click to toggle source
A file is ASCII text
@return [true, false]
# File lib/flappy/patches/native_patch.rb, line 15 def text?(file_path) !(`file -b #{file_path}` =~ /text/).nil? end