Class: Vanguard::DSL::Evaluator::Connector

Inherits:
Object
  • Object
show all
Includes:
Adamantium::Flat
Defined in:
lib/vanguard/dsl/evaluator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#klassClass (readonly)

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.

Return klass

Returns:

  • (Class)


81
82
83
# File 'lib/vanguard/dsl/evaluator.rb', line 81

def klass
  @klass
end

#leftRule (readonly)

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.

Return left rule

Returns:



89
90
91
# File 'lib/vanguard/dsl/evaluator.rb', line 89

def left
  @left
end

Instance Method Details

#connect(right) ⇒ Rule

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.

Return connected rule

Returns:



97
98
99
# File 'lib/vanguard/dsl/evaluator.rb', line 97

def connect(right)
  @klass.new(left, right)
end