Sha256: c4953c26eb461c01ada980a4662fe96b43ec149686d6238005788f66e307fff1
Contents?: true
Size: 780 Bytes
Versions: 4
Compression:
Stored size: 780 Bytes
Contents
# frozen_string_literal: true require_relative '../../lib/mini_kraken/atomic/all_atomic' module MiniKraken # Mix-in module that provides convenience factory methods. module FactoryAtomic # Factory method for constructing a KBoolean instance # @param aValue [Boolean] # @return [Core::KBoolean] def k_boolean(aValue) Atomic::KBoolean.new(aValue) end # Factory method for constructing a KString instance # @param aString [String] # @return [Core::KSymbol] def k_string(aString) Atomic::KString.new(aString) end # Factory method for constructing a KSymbol instance # @param aSymbol [Symbol] # @return [Core::KSymbol] def k_symbol(aSymbol) Atomic::KSymbol.new(aSymbol) end end # end end # module
Version data entries
4 entries across 4 versions & 1 rubygems