Module: Rhoconnect::Condition::AddParameter
- Included in:
- Server
- Defined in:
- lib/rhoconnect/condition/add_parameter.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
4 5 6 |
# File 'lib/rhoconnect/condition/add_parameter.rb', line 4 def self.extended(base) base.include_add_parameter_condition end |
Instance Method Details
#include_add_parameter_condition ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rhoconnect/condition/add_parameter.rb', line 8 def include_add_parameter_condition set(:add_parameter) do |*args| condition do if args args.each do |argument| params[argument[0]] = argument[1] end end end end end |