summaryrefslogtreecommitdiff
path: root/lib/utils.rb
blob: 6e7460ed99a4ddccadedec386ece0ee680ee79e9 (plain)
1
2
3
4
5
6
7
8
module Utils
  def self.binary?(string) 
    string.each_byte do |x|
      x.nonzero? or return true 
    end
    false
  end
end