Class: Mullet::HTML::MessageAttributeCommand
- Inherits:
-
Object
- Object
- Mullet::HTML::MessageAttributeCommand
- Includes:
- AttributeCommand
- Defined in:
- lib/mullet/html/message_attribute_command.rb
Overview
Operation to set attribute value from translation.
Instance Method Summary collapse
-
#get_value(render_context) ⇒ Object
Gets attribute value by formatting localized message.
-
#initialize(attribute_name, message) ⇒ MessageAttributeCommand
constructor
Constructor.
Methods included from AttributeCommand
Constructor Details
#initialize(attribute_name, message) ⇒ MessageAttributeCommand
Constructor
15 16 17 18 |
# File 'lib/mullet/html/message_attribute_command.rb', line 15 def initialize(attribute_name, ) super(attribute_name) = end |
Instance Method Details
#get_value(render_context) ⇒ Object
Gets attribute value by formatting localized message.
25 26 27 |
# File 'lib/mullet/html/message_attribute_command.rb', line 25 def get_value(render_context) return .translate(render_context) end |