method
is_binary_data?
v1_8_6_287 -
Show latest stable
- Class:
String
is_binary_data?()public
No documentation available.
# File lib/yaml/rubytypes.rb, line 145
def is_binary_data?
( self.count( "^ -~", "^\r\n" ) / self.size > 0.3 || self.count( "\x00" ) > 0 ) unless empty?
end