Sha256: f8ac2ae3e0c896e9030519fce053c6fa45c91aa3cdbb6fb362b8f5369ed4dabc

Contents?: true

Size: 428 Bytes

Versions: 12

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true

module Synvert::Core::NodeQuery::Compiler
  # Boolean represents a ruby boolean value.
  class Boolean
    include Comparable

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

    # Get valid operators.
    def valid_operators
      SIMPLE_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/boolean.rb
synvert-core-1.3.1 lib/synvert/core/node_query/compiler/boolean.rb
synvert-core-1.3.0 lib/synvert/core/node_query/compiler/boolean.rb
synvert-core-1.2.1 lib/synvert/core/node_query/compiler/boolean.rb
synvert-core-1.2.0 lib/synvert/core/node_query/compiler/boolean.rb
synvert-core-1.1.1 lib/synvert/core/node_query/compiler/boolean.rb
synvert-core-1.1.0 lib/synvert/core/node_query/compiler/boolean.rb
synvert-core-1.0.5 lib/synvert/core/node_query/compiler/boolean.rb
synvert-core-1.0.4 lib/synvert/core/node_query/compiler/boolean.rb
synvert-core-1.0.3 lib/synvert/core/node_query/compiler/boolean.rb
synvert-core-1.0.2 lib/synvert/core/node_query/compiler/boolean.rb
synvert-core-1.0.1 lib/synvert/core/node_query/compiler/boolean.rb