From: Misha Ognev Date: 2011-12-07T05:05:13+09:00 Subject: Ruby way to define binary hi2all I have some trouble. How can i define the binary of value in ruby? (I have a value, and I want to know that's it true or false). The simplest (but not good in my opinion) way is to do it: > v = value.to_s > return v == "false" | v == "true" What method I can use? I can't find something helpful in core. Thanks, Michael -- Posted via http://www.ruby-forum.com/.