class Amigrind::Blueprints::Evaluator::ParentBlueprintEvaluator

Public Class Methods

new(bp, evaluator, &block) click to toggle source
# File lib/amigrind/blueprints/evaluator.rb, line 139
def initialize(bp, evaluator, &block)
  @bp = bp
  @bp.source = Amigrind::Blueprints::ParentBlueprintSource.new

  @evaluator = evaluator

  instance_eval(&block)
end

Private Instance Methods

channel(c) click to toggle source
# File lib/amigrind/blueprints/evaluator.rb, line 160
def channel(c)
  raise "'channel' must implement #to_sym." unless c.respond_to?(:to_sym)

  @bp.source.channel = c
end
name(n) click to toggle source
# File lib/amigrind/blueprints/evaluator.rb, line 154
def name(n)
  raise "'name' must be a String." unless n.is_a?(String)

  @bp.source.name = n
end
properties() click to toggle source
# File lib/amigrind/blueprints/evaluator.rb, line 150
def properties
  @evaluator.properties
end