Method: GetText::ErbParser.init

Defined in:
lib/gettext/tools/parser/erb.rb

.init(config) ⇒ Object

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"].


25
26
27
28
29
# File 'lib/gettext/tools/parser/erb.rb', line 25

def init(config)
  config.each{|k, v|
    @config[k] = v
  }
end