Class: RBelly::Visitors::DotVisitor::Arrow

Inherits:
Struct
  • Object
show all
Defined in:
lib/rbelly/visitors/dot_visitor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



17
18
19
# File 'lib/rbelly/visitors/dot_visitor.rb', line 17

def from
  @from
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



17
18
19
# File 'lib/rbelly/visitors/dot_visitor.rb', line 17

def label
  @label
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



17
18
19
# File 'lib/rbelly/visitors/dot_visitor.rb', line 17

def to
  @to
end

Instance Method Details

#to_sObject



18
19
20
# File 'lib/rbelly/visitors/dot_visitor.rb', line 18

def to_s
  "\"#{from.node_id}\":f0 -> \"#{to.node_id}\":f0"
end