Method: Bcat::HeadParser#html?

Defined in:
lib/bcat/html.rb

#html?Boolean

Determine if the input is HTML. This is nil before the first non-whitespace character is received, true if the first non-whitespace character is a ‘<’, and false if the first non-whitespace character is something other than ‘<’.

Returns:

  • (Boolean)


35
36
37
# File 'lib/bcat/html.rb', line 35

def html?
  @html
end