Class: Hanami::Helpers::FormHelper::HtmlNode Private
- Inherits:
-
HtmlHelper::HtmlNode
- Object
- HtmlHelper::EmptyHtmlNode
- HtmlHelper::HtmlNode
- Hanami::Helpers::FormHelper::HtmlNode
- Defined in:
- lib/hanami/helpers/form_helper/html_node.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
HTML form node
Constant Summary
Constants inherited from HtmlHelper::EmptyHtmlNode
HtmlHelper::EmptyHtmlNode::ATTRIBUTES_SEPARATOR, HtmlHelper::EmptyHtmlNode::BOOLEAN_ATTRIBUTES
Instance Method Summary collapse
-
#initialize(name, content, attributes, options) ⇒ Hanami::Helpers::FormHelper::HtmlNode
constructor
private
Initialize a new HTML form node.
Methods inherited from HtmlHelper::HtmlNode
Methods inherited from HtmlHelper::EmptyHtmlNode
Constructor Details
#initialize(name, content, attributes, options) ⇒ Hanami::Helpers::FormHelper::HtmlNode
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize a new HTML form node
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/hanami/helpers/form_helper/html_node.rb', line 24 def initialize(name, content, attributes, ) super @verb = .fetch(:verb, nil) @csrf_token = .fetch(:csrf_token, nil) @builder = FormBuilder.new( .fetch(:name), .fetch(:values) ) end |