what does ?\xfe mean in ruby?

Posted by aharon on Stack Overflow See other posts from Stack Overflow or by aharon
Published on 2010-06-12T01:45:59Z Indexed on 2010/06/12 1:52 UTC
Read the original article Hit count: 287

Filed under:

I cam across the following code and couldn't figure out what was going on.

def self.eof_packet?(data)
  data[0] == ?\xfe && data.length == 5
end

© Stack Overflow or respective owner

Related posts about ruby