Sha256: 7b07098d423e3b6bd911e9aec929184225006786da18a0302833cf7de4c97d85

Contents?: true

Size: 482 Bytes

Versions: 5

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

module Gamefic
  # A concrete representation of an input as a verb and an array of arguments.
  #
  class Command
    # @return [Symbol]
    attr_reader :verb

    # @return [Array<Array<Entity>, Entity, String>]
    attr_reader :arguments

    # @param verb [Symbol]
    # @param arguments [Array<Array<Entity>, Entity, String>]
    def initialize verb, arguments
      @verb = verb
      @arguments = arguments
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gamefic-3.4.0 lib/gamefic/command.rb
gamefic-3.3.0 lib/gamefic/command.rb
gamefic-3.2.1 lib/gamefic/command.rb
gamefic-3.2.0 lib/gamefic/command.rb
gamefic-3.1.0 lib/gamefic/command.rb