Parent

Methods

SafeYAML::Transform::ToSymbol

Constants

MATCHER

Public Instance Methods

transform?(value) click to toggle source
# File lib/safe_yaml/transform/to_symbol.rb, line 6
def transform?(value)
  return false unless SafeYAML::OPTIONS[:enable_symbol_parsing] && MATCHER.match(value)
  return true, value[1..-1].to_sym
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.