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


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

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


22
23
24
# File 'lib/halogen/links.rb', line 22

def render
  decorate_render :links, super
end