lib/middlemac/private.rb
#--------------------------------------------------------
# This accessor for @md_images_b lazily populates the
# backing variable and buffers it for repeated use. In
# the event of file changes, a server restart is needed.
#
# @param [Sitemap::Resource] resource The page for which
#   the data are being requested.
# @return [String] Returns the Markdown reference list.
# @!visibility private
#--------------------------------------------------------
This accessor for @md_images_b lazily populates the
backing variable and buffers it for repeated use. In
the event of file changes, a server restart is needed.
This accessor for @md_images_b lazily populates the backing variable and buffers it for repeated use . In the event of file changes a server restart is needed .
def md_images_impl(resource)
    locale = resource.hb_locale.to_sym
    unless @md_images_b[locale]
      @md_images_b[locale] = get_link_data(resource, 'image/')
                                 .collect { |l| "[#{l[:reference]}]: #{l[:link]}" }
                                 .join("\n")
    end
    @md_images_b[locale]
  end
def md_images_impl ( resource ) locale = resource . hb_locale . to_sym unless @md_images_b [ locale ] @md_images_b [ locale ] = get_link_data ( resource , 'image/' ) . collect { | l | "[#{l[:reference]}]: #{l[:link]}" } . join ( "\n" ) end @md_images_b [ locale ] end
This accessor for @md_images_b lazily populates the
backing variable and buffers it for repeated use.
This accessor for @md_images_b lazily populates the backing variable and buffers it for repeated use .
Returns the Markdown reference list.
Returns the Markdown reference list .
String
resource
<not_specific>
<not_specific>
resource The page for which the data are being requested.
resource The page for which the data are being requested .
!visibility
None