Parent

Methods

SafeYAML::Transform::ToSymbol

Constants

MATCHER

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.