Sha256: 4b8766739e8750f8a55632ef6a31bbe7ac5600f46fad4f87d6f0913e0b534907

Contents?: true

Size: 459 Bytes

Versions: 9

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

require 'singleton' # Use the Singleton design pattern
require_relative 'boolean'

module Loxxy
  module Datatype
    # Class for representing a Lox false value.
    class False < Boolean
      include Singleton # Make a singleton class

      # Build the sole instance
      def initialize
        super(false)
      end
    end # class

    False.instance.freeze # Make the sole instance immutable
  end # module
end # module

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
loxxy-0.0.13 lib/loxxy/datatype/false.rb
loxxy-0.0.12 lib/loxxy/datatype/false.rb
loxxy-0.0.11 lib/loxxy/datatype/false.rb
loxxy-0.0.10 lib/loxxy/datatype/false.rb
loxxy-0.0.9 lib/loxxy/datatype/false.rb
loxxy-0.0.8 lib/loxxy/datatype/false.rb
loxxy-0.0.7 lib/loxxy/datatype/false.rb
loxxy-0.0.6 lib/loxxy/datatype/false.rb
loxxy-0.0.5 lib/loxxy/datatype/false.rb