module Haml::Util

def check_haml_encoding(str, &block)

Raises:
  • (ArgumentError) - if the document declares an unknown encoding

Returns:
  • (String) - The original string encoded properly

Other tags:
    Yieldparam: msg - The error message to be raised

Other tags:
    Yield: - A block in which an encoding error can be raised.

Parameters:
  • str (String) -- The Haml template of which to check the encoding
def check_haml_encoding(str, &block)
  check_encoding(str, &block)
end