Returns the index of the first expected parameter with the given name
Source Code
# File action_web_service/api.rb, line 198 def expects_index_of(param_name) return -1 if @expects.nil? (0..(@expects.length-1)).each do |i| return i if @expects[i].name.to_s == param_name.to_s end -1 end
<code/>and<pre/>for code samples.