Sha256: 6d290587540b3543a32b9f63cef0a0b22d4c928dab4e6505b0608f6d6bf52d37

Contents?: true

Size: 641 Bytes

Versions: 7

Compression:

Stored size: 641 Bytes

Contents

=begin
    Copyright 2010-2014 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

7 entries across 7 versions & 1 rubygems

Version Path
arachni-1.0.6 lib/arachni/component/options/float.rb
arachni-1.0.5 lib/arachni/component/options/float.rb
arachni-1.0.4 lib/arachni/component/options/float.rb
arachni-1.0.3 lib/arachni/component/options/float.rb
arachni-1.0.2 lib/arachni/component/options/float.rb
arachni-1.0.1 lib/arachni/component/options/float.rb
arachni-1.0 lib/arachni/component/options/float.rb