class OpenStax::Aws::StackFactory::VolatileParametersFactory
Attributes
attributes[R]
Public Class Methods
new(context)
click to toggle source
# File lib/openstax/aws/stack_factory.rb, line 143 def initialize(context) raise "context cannot be nil" if context.nil? @context = context @attributes = {} end
Public Instance Methods
method_missing(name, *args, &block)
click to toggle source
# File lib/openstax/aws/stack_factory.rb, line 149 def method_missing(name, *args, &block) raise "Volatile parameter `#{name}` cannot be called with arguments, only a block" if !args.empty? raise "Volatile parameter `#{name}` must be called with a block to set the parameter value" if !block_given? attributes[name.to_sym] = @context.instance_eval(&block) end