vendor/bundle/ruby/2.5.0/gems/parslet-1.5.0/lib/parslet/transform.rb
# Applies the transformation to a tree that is generated by Parslet::Parser
# or a simple parslet. Transformation will proceed down the tree, replacing
# parts/all of it with new objects. The resulting object will be returned. 
#
Applies the transformation to a tree that is generated by Parslet::Parser
or a simple parslet. Transformation will proceed down the tree, replacing
parts/all of it with new objects. The resulting object will be returned.
Applies the transformation to a tree that is generated by Parslet :: Parser or a simple parslet . Transformation will proceed down the tree replacing parts / all of it with new objects . The resulting object will be returned .
def apply(obj, context=nil)
    transform_elt(
      case obj
        when Hash
          recurse_hash(obj, context)
        when Array
          recurse_array(obj, context)
      else
        obj
      end, 
      context
    )
  end
def apply ( obj , context = nil ) transform_elt ( case obj when Hash recurse_hash ( obj , context ) when Array recurse_array ( obj , context ) else obj end , context ) end
Applies the transformation to a tree that is generated by Parslet::Parser
or a simple parslet.
Applies the transformation to a tree that is generated by Parslet :: Parser or a simple parslet .
obj
<not_specific>
context
<not_specific>