Module: Hecks::Bluebook::Behaviour::Owns
Overview
A CONSTRUCT THAT OWNS WHAT IT DECLARES.
Owner links are only ever read lazily — hecks_fqn at ask time, Reference#resolve at dispatch time — so the moment the construct is complete is the right stamping point: its declarations are final, and nothing outside needs to remember to stamp them.
Instance Method Summary collapse
Instance Method Details
#stamp(*children) ⇒ Object
75 76 77 |
# File 'lib/hecks/bluebook/behaviour/traits.rb', line 75 def stamp(*children) children.flatten.each { |child| child.hecks_owner = self } end |