Class: View::DefinitionList::Attribute

Inherits:
Struct
  • Object
show all
Defined in:
lib/view/formatters/definition_list.rb

Overview

Helper class for definition lists

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) attribute

Returns the value of attribute attribute

Returns:

  • (Object)

    the current value of attribute



67
68
69
# File 'lib/view/formatters/definition_list.rb', line 67

def attribute
  @attribute
end

- (Object) block

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



67
68
69
# File 'lib/view/formatters/definition_list.rb', line 67

def block
  @block
end

- (Object) options

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



67
68
69
# File 'lib/view/formatters/definition_list.rb', line 67

def options
  @options
end

- (Object) resource

Returns the value of attribute resource

Returns:

  • (Object)

    the current value of resource



67
68
69
# File 'lib/view/formatters/definition_list.rb', line 67

def resource
  @resource
end

- (Object) template

Returns the value of attribute template

Returns:

  • (Object)

    the current value of template



67
68
69
# File 'lib/view/formatters/definition_list.rb', line 67

def template
  @template
end

Instance Method Details

- (Object) dd



73
74
75
# File 'lib/view/formatters/definition_list.rb', line 73

def dd
  tag :dd, value
end

- (Object) dt



69
70
71
# File 'lib/view/formatters/definition_list.rb', line 69

def dt
  tag :dt, name
end