Sha256: 70900a4186f91d621e96e020f24aa47279368edd7fceb8f0904a1c44068accbb

Contents?: true

Size: 593 Bytes

Versions: 1

Compression:

Stored size: 593 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 KSymbol instance
    # @param aSymbol [Symbol]
    # @return [Core::KSymbol]
    def k_symbol(aSymbol)
      Atomic::KSymbol.new(aSymbol)
    end
  end # end
end # module

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mini_kraken-0.2.04 spec/support/factory_atomic.rb