vendor/bundle/ruby/2.7.0/gems/jekyll-mentions-1.6.0/lib/jekyll-mentions.rb
# Public: Defines the conditions for a document to be mentionable.
#
# doc - the Jekyll::Document or Jekyll::Page
#
# Returns true if the doc is written & is HTML.
Defines the conditions for a document to be mentionable.
doc - the Jekyll::Document or Jekyll::Page

Returns true if the doc is written & is HTML.
Defines the conditions for a document to be mentionable . doc - the Jekyll :: Document or Jekyll :: Page Returns true if the doc is written & is HTML .
def mentionable?(doc)
        (doc.is_a?(Jekyll::Page) || doc.write?) &&
          (doc.output_ext == ".html" || (doc.permalink&.end_with?("/"))) &&
          (doc.data["jekyll-mentions"] != false)
      end
def mentionable? ( doc ) ( doc . is_a? ( Jekyll :: Page ) || doc . write? ) && ( doc . output_ext == ".html" || ( doc . permalink &. end_with? ( "/" ) ) ) && ( doc . data [ "jekyll-mentions" ] != false ) end
Public: Defines the conditions for a document to be mentionable.
Public : Defines the conditions for a document to be mentionable .
doc
<not_specific>