class Locfile
Public Class Methods
load(filename)
click to toggle source
# File lib/localio/locfile.rb, line 59 def self.load(filename) dsl = new dsl.instance_eval(File.read(filename), filename) dsl end
new()
click to toggle source
# File lib/localio/locfile.rb, line 31 def initialize @platform_name = nil @platform_options = nil @source_service = :google_drive @source_path = nil @source_options = nil @output_path = './out/' @formatting = :smart end
Public Instance Methods
platform(name, options = {})
click to toggle source
Defines the platform
service : any of the supported ones (see above) options : hash with extra options, view documentation for the different services
# File lib/localio/locfile.rb, line 45 def platform(name, options = {}) @platform_name = name @platform_options = options end
source(service, options = {})
click to toggle source
Defines the service storing the translations
service : can be :google_drive, :xls options : hash with extra options, view documentation for the different services
# File lib/localio/locfile.rb, line 54 def source(service, options = {}) @source_service = service @source_options = options end