2022-04-25 12:25:50 -05:00

36 lines
833 B
Ruby

module VagrantPlugins
module CommandServe
class Mappers
module Internal
class Graph
class Vertex
# Vertex that represents an input value
# for a method
class Input < Vertex
attr_reader :type
def initialize(type:)
@type = type
end
# When an input Vertex is called,
# we simply set the value for use
def call(arg)
@value = arg
end
def to_s
"<Vertex:Input type=#{type} hash=#{hash_code}>"
end
def inspect
"<#{self.class.name} type=#{type} value=#{value} hash=#{hash_code}>"
end
end
end
end
end
end
end
end