inherited: protocol

Get an inherited value instead of a local one

Gets the value of key which the tree inherits from its parent scope, bypassing any value the current tree itself may have for key.

For example, in an Origami .ori file, you can write:

{
  public = {
    message = "Hello"
    hola = inherited:message     // "Hola"
  }

  message = "Hola"
}