External/Tools/AS2API/documenter.rb
# Look for a byte-order-marker in the first 3 bytes of io.
# Eats the BOM and returns true on finding one; rewinds the stream to its
# start and returns false if none is found.
Look for a byte-order-marker in the first 3 bytes of io.
Eats the BOM and returns true on finding one; rewinds the stream to its
start and returns false if none is found.
Look for a byte - order - marker in the first 3 bytes of io . Eats the BOM and returns true on finding one ; rewinds the stream to its start and returns false if none is found .
def detect_bom?(io)
  return true if io.read(3) == BOM
  io.seek(0)
  false
end
def detect_bom? ( io ) return true if io . read ( 3 ) == BOM io . seek ( 0 ) false end
Look for a byte-order-marker in the first 3 bytes of io.
Look for a byte - order - marker in the first 3 bytes of io .
io
<not_specific>