Class: Translatomatic::ResourceFile::Plist

Inherits:
XML
  • Object
show all
Defined in:
lib/translatomatic/resource_file/plist.rb

Overview

Property list resource file

Defined Under Namespace

Classes: Parser, PlistNode

Instance Attribute Summary

Attributes inherited from Base

#locale, #path, #properties

Class Method Summary collapse

Methods inherited from XML

#save, #set

Methods inherited from Base

#create_variable, enabled?, #format, #get, #initialize, #locale_path, #save, #sentences, #set, supports_variable_interpolation?, #to_s, #type, #variable_regex

Constructor Details

This class inherits a constructor from Translatomatic::ResourceFile::Base

Class Method Details

.extensionsArray<String>

Returns File extensions supported by this resource file.

Returns:

  • (Array<String>)

    File extensions supported by this resource file



12
13
14
# File 'lib/translatomatic/resource_file/plist.rb', line 12

def self.extensions
  %w{plist}
end

.is_key_value?boolean

Returns True if the file format consists of keys and values.

Returns:

  • (boolean)

    True if the file format consists of keys and values



17
18
19
# File 'lib/translatomatic/resource_file/plist.rb', line 17

def self.is_key_value?
  true
end