class SSHScan::Attribute
A class for making attribute comparison possible beyond simple string comparison
Public Class Methods
new(attribute_string)
click to toggle source
# File lib/ssh_scan/attribute.rb, line 11 def initialize(attribute_string) @attribute_string = attribute_string end
Public Instance Methods
==(other)
click to toggle source
# File lib/ssh_scan/attribute.rb, line 23 def ==(other) self.base == other.base end
base()
click to toggle source
# File lib/ssh_scan/attribute.rb, line 19 def base @attribute_string.split("@").first end
to_s()
click to toggle source
# File lib/ssh_scan/attribute.rb, line 15 def to_s @attribute_string end