class SafeYAML::Transform::ToBoolean
Public Instance Methods
Source
# File lib/safe_yaml/transform/to_boolean.rb, line 15 def transform?(value) return false if value.length > 5 return PREDEFINED_VALUES.include?(value), PREDEFINED_VALUES[value] end