Module: Clamp::Messages
- Included in:
- Clamp
- Defined in:
- lib/clamp/messages.rb
Overview
Message lookup, to allow localization.
Instance Method Summary collapse
Instance Method Details
#clear_messages! ⇒ Object
20 21 22 |
# File 'lib/clamp/messages.rb', line 20 def end |
#message(key, options = {}) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/clamp/messages.rb', line 13 def (key, = {}) string = .fetch(key) return string if .empty? format string, end |
#messages=(new_messages) ⇒ Object
9 10 11 |
# File 'lib/clamp/messages.rb', line 9 def () .merge!() end |