lib/seam/step.rb in seam-0.0.11 vs lib/seam/step.rb in seam-0.0.12

- old
+ new

@@ -10,10 +10,22 @@ def to_hash { name: name, type: type, - arguments: HashWithIndifferentAccess.new(arguments || {}) + arguments: get_arguments } + end + + private + + def get_arguments + arguments.map do |x| + if x.is_a? Hash + HashWithIndifferentAccess.new(x) + else + x + end + end end end end