From: "Kenneth    " Date: 2010-07-07T22:03:57+09:00 Subject: Re: Ruby switches I guess you can define a new method inside the class like this when possible, as long as your then statements are nice. class User def status case when banned? then ... when activated? then ... end end end -- Posted via http://www.ruby-forum.com/.