Module: MandrillQueue::Message::MergeVars::DSL

Included in:
Internal
Defined in:
lib/mandrill_queue/message/merge_vars.rb

Instance Method Summary collapse

Instance Method Details

#merge_vars(*args, &block) ⇒ Object



16
17
18
19
20
# File 'lib/mandrill_queue/message/merge_vars.rb', line 16

def merge_vars(*args, &block)
	@_merge_vars ||= MergeVars.new
	@_merge_vars.dsl(*args, &block) if args.count > 0 || block_given?
	block_given? ? self : @_merge_vars
end