src code

instance method Spah.SpahQL.QueryResult#set

Spah.SpahQL.QueryResult#set(keyOrDict, value) → Boolean
  • keyOrDict (Integer, String, Object): The key to set on this object, or a hash of keys and values that you want to set.
  • value (Object): The value to attribute to the given key. Ignored if keyOrDict is a hash.

If this result has an array or object value, modified this result by setting the given key to the given value. Returns true if the key is set successfully and false if the new value is rejected because this result isn’t enumerable.