Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/jiji/util/fix_yaml_bug.rb
Overview
for yaml bug.
Instance Method Summary collapse
-
#is_binary_data? ⇒ Boolean
[ruby-list:16014].
Instance Method Details
#is_binary_data? ⇒ Boolean
- ruby-list:16014
6 7 8 9 10 |
# File 'lib/jiji/util/fix_yaml_bug.rb', line 6 def is_binary_data? # [ruby-list:16014] return true if self.include?(0) check = self[0, 512] check.size < 10 * check.count("\x00-\x07\x0b\x0e-\x1a\x1c-\x1f") end |