Class: AdminWidgets::Show::FieldsetWidget
- Inherits:
-
AdminWidgets::ShowWidget
- Object
- Erector::Widget
- BaseWidget
- AdminWidgets::ShowWidget
- AdminWidgets::Show::FieldsetWidget
- Defined in:
- lib/admin_widgets/show/fieldset_widget.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Attributes inherited from AdminWidgets::ShowWidget
Instance Method Summary collapse
Methods inherited from AdminWidgets::ShowWidget
Methods inherited from BaseWidget
#capture, #content_block, #helper, #method_missing, #root
Methods included from Memoization
Methods included from Delegation
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class AdminWidgets::BaseWidget
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/admin_widgets/show/fieldset_widget.rb', line 5 def name @name end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
4 5 6 |
# File 'lib/admin_widgets/show/fieldset_widget.rb', line 4 def parent @parent end |
Instance Method Details
#around_fieldset ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/admin_widgets/show/fieldset_widget.rb', line 18 def around_fieldset element('fieldset') do element('legend', legend) yield end end |
#content ⇒ Object
12 13 14 15 16 |
# File 'lib/admin_widgets/show/fieldset_widget.rb', line 12 def content rawtext(around_fieldset do super end) end |