Class: JsonType
| Defined in: | lib/Types/JsonTypes.coffee | 
| Inherits: | types.MapManager | 
Overview
Manages Object-like values.
Variables Summary
- type =
 - 
    
"JsonType"Identifies this class. Use it to check whether this is a json-type or something else.
Examples:
var x = yatta.val('unknown') if (x.type === "JsonType") { console.log JSON.stringify(x.toJson()) } - mutable_default =
 - 
    
trueWhether the default is 'mutable' (true) or 'immutable' (false)
 
Instance Method Summary
- # (void) applyDelete()
 - # (void) cleanup()
 - # (Json) toJson() Transform this to a Json and loose all the sharing-abilities (the new object will be a deep clone)!
 - # (void) setReplaceManager(replace_manager) Sets the parent of this JsonType object.
 - # (JsonType) getParent() Get the parent of this JsonType.
 - # (void) setMutableDefault(mutable) Set if the default is 'mutable' or 'immutable'
 - ~ (Json) val()
 - # (void) _encode() Private
 
Constructor Details
      #
(void)
constructor(uid, initial_value, mutable)
      
    
Instance Method Details
      #
(void)
applyDelete()
      
    
      #
(void)
cleanup()
      
    
      #
(Json)
toJson()
      
    
Transform this to a Json and loose all the sharing-abilities (the new object will be a deep clone)!
      #
(void)
setReplaceManager(replace_manager)
      
    
Sets the parent of this JsonType object.
      #
(JsonType)
getParent()
      
    
Get the parent of this JsonType.
      #
(void)
setMutableDefault(mutable)
      
    
Set if the default is 'mutable' or 'immutable'
      ~
(Json)
val()
      
      ~
(JsonType|WordType|String|Object)
val(name)
      
      ~
(JsonType)
val(name, content)
      
    
      #
(void)
_encode()
      Private