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