Module: Halogen::Links::InstanceMethods

Defined in:
lib/halogen/links.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

Returns links from definitions.

Returns:

  • (Hash)

    links from definitions



26
27
28
29
30
31
32
# File 'lib/halogen/links.rb', line 26

def links
  render_definitions(Definition.name) do |definition, result|
    value = definition.value(self)

    result[definition.name] = value if value
  end
end

#renderHash

Returns the rendered hash with links, if any.

Returns:

  • (Hash)

    the rendered hash with links, if any



20
21
22
# File 'lib/halogen/links.rb', line 20

def render
  decorate_render :links, super
end