Sha256: 835e113933d52537744e142b37574375c6d1dc1318cbb9dfbc4eac2f40ba5d7e

Contents?: true

Size: 416 Bytes

Versions: 12

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

module Synvert::Core::NodeQuery::Compiler
  # Float represents a ruby float value.
  class Float
    include Comparable

    # Initialize a Float.
    # @param value [Float] the float value
    def initialize(value:)
      @value = value
    end

    # Get valid operators.
    def valid_operators
      NUMBER_VALID_OPERATORS
    end

    def to_s
      @value.to_s
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
synvert-core-1.4.0 lib/synvert/core/node_query/compiler/float.rb
synvert-core-1.3.1 lib/synvert/core/node_query/compiler/float.rb
synvert-core-1.3.0 lib/synvert/core/node_query/compiler/float.rb
synvert-core-1.2.1 lib/synvert/core/node_query/compiler/float.rb
synvert-core-1.2.0 lib/synvert/core/node_query/compiler/float.rb
synvert-core-1.1.1 lib/synvert/core/node_query/compiler/float.rb
synvert-core-1.1.0 lib/synvert/core/node_query/compiler/float.rb
synvert-core-1.0.5 lib/synvert/core/node_query/compiler/float.rb
synvert-core-1.0.4 lib/synvert/core/node_query/compiler/float.rb
synvert-core-1.0.3 lib/synvert/core/node_query/compiler/float.rb
synvert-core-1.0.2 lib/synvert/core/node_query/compiler/float.rb
synvert-core-1.0.1 lib/synvert/core/node_query/compiler/float.rb