Class: Primer::Forms::ValidationMessage
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Primer::Forms::ValidationMessage
- Defined in:
- app/lib/primer/forms/validation_message.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
Instance Method Summary collapse
-
#initialize(input:) ⇒ ValidationMessage
constructor
A new instance of ValidationMessage.
Methods inherited from BaseComponent
compile!, #content, #input?, #perform_render, #render?, #to_component, #type
Methods included from ActsAsComponent
#compile!, extended, #renders_templates
Methods included from ClassNameHelper
Constructor Details
#initialize(input:) ⇒ ValidationMessage
Returns a new instance of ValidationMessage.
9 10 11 |
# File 'app/lib/primer/forms/validation_message.rb', line 9 def initialize(input:) @input = input end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
7 8 9 |
# File 'app/lib/primer/forms/validation_message.rb', line 7 def input @input end |