Class: Shimmer::Form::PasswordField
- Defined in:
- lib/shimmer/form/password_field.rb
Instance Attribute Summary
Attributes inherited from Field
#builder, #collection, #id_method, #method, #name_method, #options
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Field
#initialize, #prepare, #wrapper_options
Constructor Details
This class inherits a constructor from Shimmer::Form::Field
Class Method Details
.can_handle?(method) ⇒ Boolean
9 10 11 |
# File 'lib/shimmer/form/password_field.rb', line 9 def can_handle?(method) method.to_s.end_with?("password") end |
Instance Method Details
#render ⇒ Object
14 15 16 |
# File 'lib/shimmer/form/password_field.rb', line 14 def render builder.password_field method, end |