Validates_inclusion_of method dealing with array


Im working through the agile book and ran across a line which I dont
understadn how it works exactly.

validates_inclusion_of :pay_type, :in => {|disp,
value| value }

Could someone please explain what this part does: {|disp, value| value }

Is it only looking at the second value in the array?

Thanks in advance!