Module: AnnotateYaml
- Defined in:
- lib/annotate_yaml.rb,
lib/annotate_yaml/railtie.rb,
lib/annotate_yaml/version.rb,
lib/annotate_yaml/annotate_yaml.rb
Defined Under Namespace
Classes: FileHandler, Railtie, YamlHashExplorer
Constant Summary
collapse
- VERSION =
"0.0.5"
- DEFAULT_YML_LOOKUP =
'config/locales/*.yml'
Class Method Summary
collapse
Class Method Details
.annotate_locales ⇒ Object
107
108
109
110
111
|
# File 'lib/annotate_yaml/annotate_yaml.rb', line 107
def annotate_locales
file_names.each do |file_name|
FileHandler.new(file_name).call
end
end
|
.file_names ⇒ Object
113
114
115
|
# File 'lib/annotate_yaml/annotate_yaml.rb', line 113
def file_names
Dir.glob(DEFAULT_YML_LOOKUP)
end
|