Method: GetText::ErbParser.target?

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

.target?(file) ⇒ Boolean

:nodoc:

Returns:

  • (Boolean)


31
32
33
34
35
36
# File 'lib/gettext/tools/parser/erb.rb', line 31

def target?(file) # :nodoc:
  @config[:extnames].each do |v|
    return true if File.extname(file) == v
  end
  false
end