Sha256: 76839809d4aee4b94884d06099b9b6ce2567b1519057117bbbd85d47a76a40e8
Contents?: true
Size: 374 Bytes
Versions: 34
Compression:
Stored size: 374 Bytes
Contents
require File.dirname(__FILE__) + '/string/conversions' require File.dirname(__FILE__) + '/string/inflections' class String #:nodoc: include Redmine::CoreExtensions::String::Conversions include Redmine::CoreExtensions::String::Inflections def is_binary_data? ( self.count( "^ -~", "^\r\n" ).fdiv(self.size) > 0.3 || self.index( "\x00" ) ) unless empty? end end
Version data entries
34 entries across 34 versions & 1 rubygems