lib/alchemy/phylactery.rb
## Special.  Expects data to be a JSON array
Special.  Expects data to be a JSON array
Special . Expects data to be a JSON array
def replace(key, data)
      list = lists(key)
      return false unless list
      value = JSON.parse(data)
      return false unless value.is_a? Array
      list.replace(value)
      return true
    end
def replace ( key , data ) list = lists ( key ) return false unless list value = JSON . parse ( data ) return false unless value . is_a? Array list . replace ( value ) return true end
Special.
Special .
key
<not_specific>
data
<not_specific>