class Arachni::Component::Options::Int
Integer option.
@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>
Public Instance Methods
normalize()
click to toggle source
# File lib/arachni/component/options/int.rb, line 14 def normalize effective_value.to_i end
type()
click to toggle source
# File lib/arachni/component/options/int.rb, line 23 def type :integer end
valid?()
click to toggle source
Calls superclass method
Arachni::Component::Options::Base#valid?
# File lib/arachni/component/options/int.rb, line 18 def valid? return false if !super effective_value.to_s =~ /^\d+$/ end