Class: Bureaucrat::Widgets::HiddenInput

Inherits:
Input show all
Defined in:
lib/bureaucrat/widgets.rb

Overview

Class for hidden inputs

Direct Known Subclasses

MultipleHiddenInput

Constant Summary

Constants included from Utils

Utils::ESCAPES

Instance Attribute Summary

Attributes inherited from Widget

#attrs, #is_required

Instance Method Summary collapse

Methods inherited from Input

#render

Methods inherited from Widget

#build_attrs, #has_changed?, id_for_label, #initialize, #initialize_copy, #needs_multipart?, #render, #value_from_formdata

Methods included from Utils

#blank_value?, #conditional_escape, #escape, #flatatt, #format_string, #make_bool, #make_float, #mark_safe, #pretty_name

Constructor Details

This class inherits a constructor from Bureaucrat::Widgets::Widget

Instance Method Details

#hidden?Boolean

Returns:

  • (Boolean)


100
101
102
# File 'lib/bureaucrat/widgets.rb', line 100

def hidden?
  true
end

#input_typeObject



96
97
98
# File 'lib/bureaucrat/widgets.rb', line 96

def input_type
  'hidden'
end