Class: Primer::Forms::Dsl::InputGroup
- Inherits:
 - 
      Object
      
        
- Object
 - Primer::Forms::Dsl::InputGroup
 
 
- Includes:
 - InputMethods
 
- Defined in:
 - lib/primer/forms/dsl/input_group.rb
 
Overview
:nodoc:
Instance Attribute Summary collapse
- 
  
    
      #builder  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute builder.
 - 
  
    
      #form  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute form.
 - 
  
    
      #system_arguments  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute system_arguments.
 
Instance Method Summary collapse
- 
  
    
      #initialize(builder:, form:, **system_arguments) {|_self| ... } ⇒ InputGroup 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of InputGroup.
 - #input? ⇒ Boolean
 - #to_component ⇒ Object
 - #type ⇒ Object
 
Methods included from InputMethods
#action_menu, #button, #check_box, #check_box_group, #fields_for, #hidden, #inputs, #multi, #radio_button_group, #select_list, #separator, #submit, #text_area, #text_field
Constructor Details
#initialize(builder:, form:, **system_arguments) {|_self| ... } ⇒ InputGroup
Returns a new instance of InputGroup.
      12 13 14 15 16 17 18  | 
    
      # File 'lib/primer/forms/dsl/input_group.rb', line 12 def initialize(builder:, form:, **system_arguments) @builder = builder @form = form @system_arguments = system_arguments yield(self) if block_given? end  | 
  
Instance Attribute Details
#builder ⇒ Object (readonly)
Returns the value of attribute builder.
      10 11 12  | 
    
      # File 'lib/primer/forms/dsl/input_group.rb', line 10 def builder @builder end  | 
  
#form ⇒ Object (readonly)
Returns the value of attribute form.
      10 11 12  | 
    
      # File 'lib/primer/forms/dsl/input_group.rb', line 10 def form @form end  | 
  
#system_arguments ⇒ Object (readonly)
Returns the value of attribute system_arguments.
      10 11 12  | 
    
      # File 'lib/primer/forms/dsl/input_group.rb', line 10 def system_arguments @system_arguments end  | 
  
Instance Method Details
#input? ⇒ Boolean
      28 29 30  | 
    
      # File 'lib/primer/forms/dsl/input_group.rb', line 28 def input? true end  | 
  
#to_component ⇒ Object
      20 21 22  | 
    
      # File 'lib/primer/forms/dsl/input_group.rb', line 20 def to_component Group.new(inputs: inputs, builder: builder, form: form, **@system_arguments) end  | 
  
#type ⇒ Object
      24 25 26  | 
    
      # File 'lib/primer/forms/dsl/input_group.rb', line 24 def type :group end  |