module GetText::ErbParser

Public Instance Methods

init(config) click to toggle source

Sets some preferences to parse ERB files.

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

    • :extnames: An Array of target files extension. Default is [".rhtml"].

# File lib/gettext/tools/parser/erb.rb, line 25
  def init(config)
    config.each{|k, v|
@config[k] = v
    }
  end