From: Soichi Ishida Date: 2012-11-14T14:07:10+09:00 Subject: help me understand (method 1 : 0) I got this piece of code from "RSpec Book" page 85 def exact_match_count(guess) (0..3).inject(0) do | count, index | count + (exact_match?(guess, index) ? 1 : 0) end end But I don't quite understand ...) ? 1 : 0) part. Could anyone help me understand this? soichi -- Posted via http://www.ruby-forum.com/.