Sha256: 3ae92a6cc33c74b26945e24baf2333bfef59215db3ffeb1894127419175b9cd7

Contents?: true

Size: 481 Bytes

Versions: 4

Compression:

Stored size: 481 Bytes

Contents

# frozen_string_literal: true

require_relative 'base_arg'

module MiniKraken
  module Core
    # A formal reference represents the occurrence of a formal argument name in a
    # goal template argument list.
    class FormalRef < BaseArg
      # @return [String]
      attr_reader :name

      def initialize(aName)
        @name = validated_name(aName)
      end

      private

      def validated_name(aName)
        aName
      end
    end # class
  end # module
end # module

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mini_kraken-0.2.00 lib/mini_kraken/core/formal_ref.rb
mini_kraken-0.1.13 lib/mini_kraken/core/formal_ref.rb
mini_kraken-0.1.12 lib/mini_kraken/core/formal_ref.rb
mini_kraken-0.1.11 lib/mini_kraken/core/formal_ref.rb