Sha256: 94eb568b9fec32276c9bf58cd33133b5be54711176e886beb210b11ef763d925

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 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)
        super()
        @name = validated_name(aName)
      end

      private

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mini_kraken-0.2.01 lib/mini_kraken/core/formal_ref.rb