Module: Buby::ScanIssueHelper
- Defined in:
- lib/buby/extends/scan_issue.rb
Class Method Summary (collapse)
-
+ (Object) implant(base)
one-shot method to implant ourselves onto a target object's class interface in ruby.
- + (Boolean) implanted?
Instance Method Summary (collapse)
- - (Object) http_messages (also: #messages)
-
- (Object) uri
Returns a Ruby URI object derived from the java.net.URL object.
Class Method Details
+ (Object) implant(base)
one-shot method to implant ourselves onto a target object's class interface in ruby. All later instances will also get 'us' for free!
21 22 23 24 25 |
# File 'lib/buby/extends/scan_issue.rb', line 21 def self.implant(base) return if @implanted base.class.instance_eval { include(ScanIssueHelper) } @implanted = true end |
+ (Boolean) implanted?
33 |
# File 'lib/buby/extends/scan_issue.rb', line 33 def self.implanted? ; @implanted; end |
Instance Method Details
- (Object) http_messages Also known as: messages
27 28 29 |
# File 'lib/buby/extends/scan_issue.rb', line 27 def HttpRequestResponseList.new( self.getHttpMessages() ) end |
- (Object) uri
Returns a Ruby URI object derived from the java.net.URL object
15 16 17 |
# File 'lib/buby/extends/scan_issue.rb', line 15 def uri @uri ||= URI.parse url.to_s if not url.nil? end |