Class: Primer::Forms::FormList

Inherits:
Object
  • Object
show all
Extended by:
ActsAsComponent
Defined in:
lib/primer/forms/form_list.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes included from ActsAsComponent

#template_root_path

Instance Method Summary collapse

Methods included from ActsAsComponent

compile!, extended, renders_templates

Constructor Details

#initialize(*forms) ⇒ FormList

Returns a new instance of FormList.



11
12
13
# File 'lib/primer/forms/form_list.rb', line 11

def initialize(*forms)
  @forms = forms
end

Instance Method Details

#perform_render(&_block) ⇒ Object



15
16
17
18
# File 'lib/primer/forms/form_list.rb', line 15

def perform_render(&_block)
  self.class.compile!
  render_form_list
end