Method: Translatomatic::ResourceFile::Base#create_variable

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

#create_variable(name) ⇒ String

Create an interpolated variable string.

Returns:

  • (String)

    A string representing the interpolated variable, or nil if this resource file doesn’t support variable interpolation.



118
119
120
121
# File 'lib/translatomatic/resource_file/base.rb', line 118

def create_variable(name)
  return nil unless supports_variable_interpolation?
  raise "create_variable(name) must be implemented by subclass"
end