module Stannum::Messages
Namespace for generating messages for Stannum::Errors
.
Public Class Methods
locales_path()
click to toggle source
@return [String] the absolute path to the configured locales.
# File lib/stannum/messages.rb, line 12 def self.locales_path File.join(Stannum.gem_path, 'config', 'locales') end
strategy()
click to toggle source
@return [#call] the configured strategy for generating messages.
# File lib/stannum/messages.rb, line 17 def self.strategy @strategy ||= DefaultStrategy.new end
strategy=(strategy)
click to toggle source
@param strategy [#call] The strategy to use to generate error messages.
# File lib/stannum/messages.rb, line 22 def self.strategy=(strategy) @strategy = strategy end