Class: Ruby::Rego::Unifier::ObjectBindingState

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby/rego/unifier.rb

Overview

Tracks bindings and object keys already matched in a pattern.

Instance Attribute Summary collapse

Instance Attribute Details

#bindingsObject

Returns the value of attribute bindings

Returns:

  • (Object)

    the current value of bindings



159
160
161
# File 'lib/ruby/rego/unifier.rb', line 159

def bindings
  @bindings
end

#used_keysObject

Returns the value of attribute used_keys

Returns:

  • (Object)

    the current value of used_keys



159
160
161
# File 'lib/ruby/rego/unifier.rb', line 159

def used_keys
  @used_keys
end