module GetText::HamlParser

Public Instance Methods

init(config) click to toggle source

Sets some preferences to parse Haml files.

  • config: a Hash of the config. It can takes some values below:

    • :extnames: An Array of target files extension. Default is [“.haml”].

# File lib/gettext/tools/parser/haml.rb, line 33
def init(config)
  config.each do |key, value|
    @config[key] = value
  end
end