Method: Translatomatic::ResourceFile::Base#variable_regex

Defined in:
lib/translatomatic/resource_file/base.rb

#variable_regexRegexp

Returns A regexp used to match interpolated variables.

Returns:

  • (Regexp)

    A regexp used to match interpolated variables



124
125
126
127
# File 'lib/translatomatic/resource_file/base.rb', line 124

def variable_regex
  return nil unless supports_variable_interpolation?
  raise "variable_regex must be implemented by subclass"
end