Sha256: ab83c68b4a1af16672cfe76630f5bdafe782e20677b9b1f2f712cb15272cc58a

Contents?: true

Size: 641 Bytes

Versions: 6

Compression:

Stored size: 641 Bytes

Contents

=begin
    Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.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

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.3.2 lib/arachni/component/options/float.rb
arachni-1.3.1 lib/arachni/component/options/float.rb
arachni-1.3 lib/arachni/component/options/float.rb
arachni-1.2.1 lib/arachni/component/options/float.rb
arachni-1.2 lib/arachni/component/options/float.rb
arachni-1.1 lib/arachni/component/options/float.rb