Sha256: 5d3a457a505078ac6783abdc30719de048cec9e01477600cad07cd3c60c5ed26

Contents?: true

Size: 271 Bytes

Versions: 1

Compression:

Stored size: 271 Bytes

Contents

# frozen_string_literal: true

module El
  # represent the form tag
  class Form < Element
    def initialize(method: 'POST', action: '/')
      super('form', closing_tag: true)

      add_attribute(:method, method)
      add_attribute(:action, action)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
element_component-0.1.0 lib/element_component/core/form.rb