Class: Formular::Element::Checkbox

Inherits:
Control
  • Object
show all
Includes:
Modules::Checkable
Defined in:
lib/formular/elements.rb

Overview

class Select

Constant Summary

Constants included from HtmlEscape

HtmlEscape::HTML_ESCAPE, HtmlEscape::HTML_ESCAPE_ONCE_REGEXP, HtmlEscape::HTML_ESCAPE_REGEXP

Instance Method Summary collapse

Methods included from HtmlEscape

#html_escape, #html_escape_once

Methods included from Module

included

Instance Method Details

#hidden_tagObject



311
312
313
314
315
# File 'lib/formular/elements.rb', line 311

def hidden_tag
  return '' unless options[:include_hidden]

  Hidden.(value: options[:unchecked_value], name: options[:name]).to_s
end