Class: Hecks::Runtime::ReferenceHop::Folded

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/hecks/runtime/reference_hop.rb

Overview

Never returned to a caller that might call an IR-level method (to_h, …) whose OWN internal wheres read would resolve against the original object, not this override — the exact caution TenantScope::Scoped's own comment gives, for the exact same reason: SimpleDelegator only intercepts calls made directly on the wrapper.

Instance Method Summary collapse

Constructor Details

#initialize(declared, wheres) ⇒ Folded

Returns a new instance of Folded.



90
91
92
93
# File 'lib/hecks/runtime/reference_hop.rb', line 90

def initialize(declared, wheres)
  super(declared)
  @wheres = wheres
end

Instance Method Details

#wheresObject



95
# File 'lib/hecks/runtime/reference_hop.rb', line 95

def wheres = @wheres