module Origen::SubBlocks::Parent
Jumping through some hoops here since many Origen
modules talk about an owner, but would prefer to start standardizing on parent in future, so this should give most Origen
models a parent method
Public Instance Methods
owner=(obj)
click to toggle source
# File lib/origen/sub_blocks.rb, line 96 def owner=(obj) if obj.respond_to?(:controller) && obj.controller @owner = obj.controller else @owner = obj end end
Also aliased as: parent=
parent()
click to toggle source
# File lib/origen/sub_blocks.rb, line 90 def parent @owner end
Also aliased as: owner