class Arachni::Component::Options::Bool

Boolean option.

@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>

Constants

TRUE_REGEX
VALID_REGEXP

Public Instance Methods

false?() click to toggle source
# File lib/arachni/component/options/bool.rb, line 30
def false?
    !true?
end
normalize() click to toggle source
# File lib/arachni/component/options/bool.rb, line 22
def normalize
    effective_value.to_s =~ TRUE_REGEX
end
true?() click to toggle source
# File lib/arachni/component/options/bool.rb, line 26
def true?
    normalize
end
type() click to toggle source
# File lib/arachni/component/options/bool.rb, line 34
def type
    :bool
end
valid?() click to toggle source
# File lib/arachni/component/options/bool.rb, line 17
def valid?
    return false if !super
    effective_value.to_s.match( VALID_REGEXP )
end