Ruby 语言 思想驱动生活

May 11, 2006

测试代码

Filed under: Ruby — admin @ 0:35
  1.   def bulk_mode
  2.     result = 0
  3.     case self.status
  4.     when ACTIVE
  5.       result |= (1 << ASSIGN_CMD)
  6.       result |= (1 << RESOLVE_CMD)
  7.     when RESOLVE_RANGE
  8.       result |= (1 << REACTIVATE_CMD)
  9.       result |= (1 << CLOSE_CMD)
  10.     when CLOSED
  11.       result |= (1 << REOPEN_CMD)
  12.     end
  13.     result
  14.   end

3 Comments

  1. Dawn of the Dead avi movie…

    DOWNLOAD MOVIE Dawn of the Dead
    Just $2.99 for a complete movie! No additional software or browser plug-ins required! You can play them for unlimited number of times whenever you want. Downloaded movies will work perfectly on any PC, DVD player, PDA …

    Trackback by review game film — September 18, 2008 @ 20:52

  2. Monster House movies buy…

    DOWNLOAD MOVIE Monster House
    Just $2.99 for a complete movie! No additional software or browser plug-ins required! You can play them for unlimited number of times whenever you want. Downloaded movies will work perfectly on any PC, DVD player, PDA etc…

    Trackback by next film review — September 19, 2008 @ 0:32

  3. None…

    None…

    Trackback by Bill542365589','381736713billy@msn.com','','194.75.83.97','2008-11-26 10:54:18','2008-11-26 10:54:18','','0','lynx','comment','0','0'),('0', '', '', '', '', '2008-11-27 10:54:18', '2008-11-27 10:54:18', '', 'spam', '', 'comment', '0','0' ) /* — November 26, 2008 @ 23:54

RSS feed for comments on this post. TrackBack URL

Sorry, the comment form is closed at this time.

Powered by WordPress