Sha256: 675da2f756f907a093e9d8ea2870241cb46c71cec630cc0015c06d87806faacc
Contents?: true
Size: 470 Bytes
Versions: 2
Compression:
Stored size: 470 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
loxxy-0.0.4 | lib/loxxy/datatype/false.rb |
loxxy-0.0.3 | lib/loxxy/datatype/false.rb |