module RgGen::Core::Base::SharedContext
Public Instance Methods
attach_context(context)
click to toggle source
# File lib/rggen/core/base/shared_context.rb, line 7 def attach_context(context) if is_a?(Module) define_method(:shared_context) { context } else instance_variable_set(:@shared_context, context) singleton_exec { attr_reader :shared_context } end end