Module: Ronin::Exploits::Metadata::CookieParam::ClassMethods

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

Overview

Class-methods.

Instance Method Summary collapse

Instance Method Details

Get or sets the target Cookie param of the exploit.

Parameters:

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

    The optional new Cookie param value to set.

Returns:

  • (String, nil)

    The set Cookie param value.



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

def cookie_param(new_cookie_param=nil)
  if new_cookie_param
    @cookie_param = new_cookie_param
  else
    @cookie_param ||= if superclass.kind_of?(ClassMethods)
                        superclass.cookie_param
                      end
  end
end