class Bashly::MessageStrings
Public Instance Methods
Private Instance Methods
Source
# File lib/bashly/message_strings.rb, line 20 def project_strings @project_strings ||= project_strings! end
Source
# File lib/bashly/message_strings.rb, line 24 def project_strings! if File.exist? project_strings_path YAML.load_file project_strings_path else {} end end
Source
# File lib/bashly/message_strings.rb, line 32 def project_strings_path @project_strings_path ||= "#{Settings.source_dir}/bashly-strings.yml" end
Source
# File lib/bashly/message_strings.rb, line 15 def values! defaults = YAML.load_file asset('libraries/strings/strings.yml') defaults.merge project_strings end