vendor/bundle/ruby/2.7.0/gems/jekyll-github-metadata-2.13.0/lib/jekyll-github-metadata/edit-link-tag.rb
# Utility function for compatibility with Jekyll 4.0
Utility function for compatibility with Jekyll 4.0
Utility function for compatibility with Jekyll 4 . 0
def memoize_conditionally
        if renderer_cached?
          yield
        else
          dispatcher = "@#{caller_locations(1..1).first.label}".to_sym
          if instance_variable_defined?(dispatcher)
            instance_variable_get(dispatcher)
          else
            instance_variable_set(dispatcher, yield)
          end
        end
      end
def memoize_conditionally if renderer_cached? yield else dispatcher = "@#{caller_locations(1..1).first.label}" . to_sym if instance_variable_defined? ( dispatcher ) instance_variable_get ( dispatcher ) else instance_variable_set ( dispatcher , yield ) end end end
Utility function for compatibility with Jekyll 4.0
Utility function for compatibility with Jekyll 4 . 0