Sha256: add6e26ca268557c93bc5fb5a6ae938c1b30f1c7d5e5cdcb9f0de029e810c5fb

Contents?: true

Size: 910 Bytes

Versions: 4

Compression:

Stored size: 910 Bytes

Contents

module VagrantPlugins
  module CommandServe
    class Mappers
      module Internal
        class Graph
          class Vertex
            # Vertex that represents an output of
            # a method
            class Output < Vertex
              attr_reader :type

              def initialize(type:)
                @type = type
              end

              # When an output Vertex is called,
              # we simply set the value for use
              def call(arg)
                @value = arg
              end

              def to_s
                "<Vertex:Output type=#{type} hash=#{hash_code}>"
              end

              def hash_code
                "Output:#{type}"
              end

              def inspect
                "<#{self.class.name} type=#{type} value=#{value} hash=#{hash_code}>"
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/commands/serve/mappers/internal/graph/vertex/output.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/commands/serve/mappers/internal/graph/vertex/output.rb
vagrant-unbundled-2.3.3.0 plugins/commands/serve/mappers/internal/graph/vertex/output.rb
vagrant-unbundled-2.3.2.0 plugins/commands/serve/mappers/internal/graph/vertex/output.rb