Module: Ronin::Exploits::Metadata::HeaderName::ClassMethods

Defined in:
lib/ronin/exploits/metadata/header_name.rb

Overview

Class-methods.

Instance Method Summary collapse

Instance Method Details

#header_name(new_header_name = nil) ⇒ String?

Get or sets the target HTTP Header name of the exploit.

Parameters:

  • new_header_name (String, nil) (defaults to: nil)

    The optional new HTTP Header name to set.

Returns:

  • (String, nil)

    The set HTTP Header name value.



57
58
59
60
61
62
63
64
65
# File 'lib/ronin/exploits/metadata/header_name.rb', line 57

def header_name(new_header_name=nil)
  if new_header_name
    @header_name = new_header_name
  else
    @header_name ||= if superclass.kind_of?(ClassMethods)
                       superclass.header_name
                     end
  end
end