Class: AdminWidgets::Show::FieldsetWidget

Inherits:
AdminWidgets::ShowWidget show all
Defined in:
lib/admin_widgets/show/fieldset_widget.rb

Instance Attribute Summary collapse

Attributes inherited from AdminWidgets::ShowWidget

#builder

Instance Method Summary collapse

Methods inherited from AdminWidgets::ShowWidget

#field, #fieldset, #show

Methods inherited from BaseWidget

#capture, #content_block, #helper, #method_missing, #root

Methods included from Memoization

#memoize

Methods included from Delegation

#delegate

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AdminWidgets::BaseWidget

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/admin_widgets/show/fieldset_widget.rb', line 5

def name
  @name
end

#parentObject (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_fieldsetObject



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

#contentObject



12
13
14
15
16
# File 'lib/admin_widgets/show/fieldset_widget.rb', line 12

def content
  rawtext(around_fieldset do
    super
  end)
end