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

Class for Ruby scripts context. All embedded Ruby scripts run in this context where build properties are defined as Ruby variables.

Methods

Included Modules

Bee::Util::BuildErrorMixin

Attributes

context_binding  [R]  The binding of this context.

Public Class methods

Constructor.

Public Instance methods

Process a given object, replacing properties references with their string value, symbol with their raw value. Property references have same form than variable references in ruby strings: ’#{variable}’ will be replaced with variable string value.

  • object: object to process.

Evaluate a script in context.

  • script: source of the script to evaluate.

Get a given property in context.

  • name: the property name.
  • strict: raise an error if given property was not set.

Return list of properties (as local variables of binding).

Set a given property in context.

  • name: the property name.
  • value: the property value.
  • override: tells if we can overwrite an existing value.

[Validate]