class Locca::Project
Attributes
base_lang[R]
dir[R]
Public Class Methods
new(dir, config)
click to toggle source
# File lib/locca/projects/project.rb, line 30 def initialize(dir, config) @dir = dir @config = config @base_lang = config['base_lang'] end
Public Instance Methods
collection_builder()
click to toggle source
# File lib/locca/projects/project.rb, line 67 def collection_builder # implement in subclass end
collection_names()
click to toggle source
# File lib/locca/projects/project.rb, line 55 def collection_names # implement in subclass end
collection_writer()
click to toggle source
# File lib/locca/projects/project.rb, line 71 def collection_writer # implement in subclass end
collections_generator()
click to toggle source
# File lib/locca/projects/project.rb, line 75 def collections_generator # implement in subclass end
config_value_for_key(key)
click to toggle source
# File lib/locca/projects/project.rb, line 37 def config_value_for_key(key) return @config[key] end
full_collection_name(collection_name)
click to toggle source
# File lib/locca/projects/project.rb, line 59 def full_collection_name(collection_name) # implement in subclass end
langs()
click to toggle source
# File lib/locca/projects/project.rb, line 51 def langs # implement in subclass end
name()
click to toggle source
# File lib/locca/projects/project.rb, line 83 def name return "" end
one_sky_file_format()
click to toggle source
# File lib/locca/projects/project.rb, line 79 def one_sky_file_format # implement in subclass end
path_for_collection(collection_name, lang)
click to toggle source
# File lib/locca/projects/project.rb, line 63 def path_for_collection(collection_name, lang) # implement in subclass end
prevent_sync_without_comments?()
click to toggle source
# File lib/locca/projects/project.rb, line 41 def prevent_sync_without_comments? value = @config['prevent_sync_without_comments'] if value == true || value == 1 return true else return false end end