# File lib/html5/inputstream.rb, line 426 def get_encoding @data.each do |byte| keep_parsing = true @@method_dispatch.each do |(key, method)| if @data.match_bytes(key, lower = true) keep_parsing = send(method) break end end break unless keep_parsing end @encoding = @encoding.strip unless @encoding.nil? return @encoding end