Class Bee::Properties
In: lib/bee.rb
Parent: Object

Class to manage properties.

Methods

evaluate   extend   new   overwrite   write  

Included Modules

Bee::Util::BuildErrorMixin

Constants

KEY = 'properties'   Key for properties entry.

Attributes

hash  [R]  Hash of properties by name.
list  [R]  List of properties in order of evaluation.

Public Class methods

Constructor.

  • build: build object.

Public Instance methods

Evaluate properties in context.

  • context: build context where properties must be evaluated.

Extend with properties of parent build.

  • properties: properties of parent build.

Overwrite properties. Will raise an error if properties don‘t already exist.

  • object: object tree resulting from YAML build file parsing.

Write properties. Will raise an error on duplicate definitions.

  • object: object tree resulting from YAML build file parsing or string for a properties file to load.

[Validate]