Sha256: 654df9931a5c2b81b7d26918c62e6c1d470b4468aa49e205564fa226f967201a

Contents?: true

Size: 626 Bytes

Versions: 5

Compression:

Stored size: 626 Bytes

Contents

=begin
    Copyright 2010-2022 Ecsypno <http://www.ecsypno.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

# Floating point option.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class Arachni::Component::Options::Float < Arachni::Component::Options::Base

    def normalize
        Float( effective_value ) rescue nil
    end

    def valid?
        super && normalize
    end

    def type
        :float
    end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 lib/arachni/component/options/float.rb
arachni-1.6.1.2 lib/arachni/component/options/float.rb
arachni-1.6.1.1 lib/arachni/component/options/float.rb
arachni-1.6.1 lib/arachni/component/options/float.rb
arachni-1.6.0 lib/arachni/component/options/float.rb