Sha256: 4bef3f6033a74fa4fbebeb0fa062a7beee60415a0d7e8f2a080f1581c47887e7

Contents?: true

Size: 484 Bytes

Versions: 2

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

module Lrama
  class Counterexamples
    class Path
      def initialize(from_state_item, to_state_item)
        @from_state_item = from_state_item
        @to_state_item = to_state_item
      end

      def from
        @from_state_item
      end

      def to
        @to_state_item
      end

      def to_s
        "#<Path(#{type})>"
      end
      alias :inspect :to_s

      def type
        raise NotImplementedError
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lrama-0.7.0 lib/lrama/counterexamples/path.rb
lrama-0.6.11 lib/lrama/counterexamples/path.rb