Class: Primer::Forms::ValidationMessage

Inherits:
BaseComponent show all
Defined in:
lib/primer/forms/validation_message.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Attributes included from ActsAsComponent

#template_root_path

Instance Method Summary collapse

Methods inherited from BaseComponent

#content, inherited, #input?, #perform_render, #render?, #to_component, #type

Methods included from ActsAsComponent

#compile!, extended, #renders_templates

Methods included from ClassNameHelper

#class_names

Constructor Details

#initialize(input:) ⇒ ValidationMessage

Returns a new instance of ValidationMessage.



9
10
11
# File 'lib/primer/forms/validation_message.rb', line 9

def initialize(input:)
  @input = input
end

Instance Attribute Details

#inputObject (readonly)

Returns the value of attribute input.



7
8
9
# File 'lib/primer/forms/validation_message.rb', line 7

def input
  @input
end