Module: Glimmer::DSL::ParentExpression

Defined in:
lib/glimmer/dsl/parent_expression.rb

Overview

Mixin that represents expressions that always have a content block

Instance Method Summary collapse

Instance Method Details

#add_content(new_parent, keyword, *args, &block) ⇒ Object

Default implementation that simply invokes block content with newly interpreted parent object as an argument

Only expressions that receive a content block should implement



31
32
33
# File 'lib/glimmer/dsl/parent_expression.rb', line 31

def add_content(new_parent, keyword, *args, &block)
  block.call(new_parent)
end