Class: Forms::Plain::Label
- Inherits:
-
Label
- Object
- Label
- Forms::Plain::Label
- Defined in:
- lib/forms/plain/label.rb
Overview
Bare
Instance Method Summary collapse
Instance Method Details
#view_template(&block) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/forms/plain/label.rb', line 7 def view_template(&block) label(for: @for, **@attributes) do if block yield elsif @text plain @text abbr(title: "required") { "*" } if @required end end end |