Module: SSLyze::XML::Attributes::Title

Included in:
SSLyze::XML, Plugin
Defined in:
lib/sslyze/xml/attributes/title.rb

Overview

Provides methods for accessing the title XML attribute.

Since:

  • 1.0.0

Instance Method Summary collapse

Instance Method Details

#titleString?

The title.

Returns:

  • (String, nil)

    The value of the title attribute.

Since:

  • 1.0.0



16
17
18
# File 'lib/sslyze/xml/attributes/title.rb', line 16

def title
  @title ||= @node['title']
end

#to_sString

The title or an empty String.

Returns:

  • (String)

Since:

  • 1.0.0



25
26
27
# File 'lib/sslyze/xml/attributes/title.rb', line 25

def to_s
  title || ''
end