Class: AwesomeTranslations::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/awesome_translations/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/awesome_translations/config.rb', line 4

def initialize
  @ignored_paths = [
    Rails.root.join(".git").to_s,
    Rails.root.join("config/locales").to_s,
    Rails.root.join("log").to_s,
    Rails.root.join("public/packs-test").to_s,
    Rails.root.join("public/packs").to_s,
    Rails.root.join("node_modules").to_s,
    Rails.root.join("tmp").to_s,
    Rails.root.join("storage").to_s,
    Rails.root.join("spec").to_s
  ]
  @paths_to_translate = [Rails.root.to_s]
end

Instance Attribute Details

#ignored_pathsObject

Returns the value of attribute ignored_paths.



2
3
4
# File 'lib/awesome_translations/config.rb', line 2

def ignored_paths
  @ignored_paths
end

#paths_to_translateObject

Returns the value of attribute paths_to_translate.



2
3
4
# File 'lib/awesome_translations/config.rb', line 2

def paths_to_translate
  @paths_to_translate
end