Module: Jaina::Parser::Expression::Operator::Abstract::DSL::ClassInheritance Private

Defined in:
lib/jaina/parser/expression/operator/grouping/dsl.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#inherited(child_klass) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

  • child_klass (Class)

Since:

  • 0.1.0



30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/jaina/parser/expression/operator/grouping/dsl.rb', line 30

def inherited(child_klass)
  child_klass.instance_variable_set(
    :@acts_as_group_opener,
    instance_variable_get(:@acts_as_group_opener)
  )

  child_klass.instance_variable_set(
    :@acts_as_group_closener,
    instance_variable_get(:@acts_as_group_closener)
  )

  super
end