lib/liquid/context.rb
# fetches an object starting at the local scope and then moving up 
# the hierachy 
fetches an object starting at the local scope and then moving up
the hierachy
fetches an object starting at the local scope and then moving up the hierachy
def fetch(key)
      begin
        for scope in @assigns
          if scope.has_key?(key)
            obj = scope[key]
            if obj.is_a?(Liquid::Drop)
              obj.context = self 
            end
            return obj
          end
        end
      rescue => e
        raise ContextError, "Could not fetch key #{key} from context: " + e.message
      end 
      nil
    end
def fetch ( key ) begin for scope in @assigns if scope . has_key? ( key ) obj = scope [ key ] if obj . is_a? ( Liquid :: Drop ) obj . context = self end return obj end end rescue => e raise ContextError , "Could not fetch key #{key} from context: " + e . message end nil end
fetches an object starting at the local scope and then moving up
the hierachy
fetches an object starting at the local scope and then moving up the hierachy
key
<not_specific>