Class: GraphViz::Types::ArrowType

Inherits:
Common show all
Defined in:
lib/graphviz/types/arrow_type.rb

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from GraphViz::Types::Common

Instance Method Details

#check(data) ⇒ Object



16
17
18
# File 'lib/graphviz/types/arrow_type.rb', line 16

def check(data)
  return data
end

#outputObject Also known as: to_gv, to_s



20
21
22
# File 'lib/graphviz/types/arrow_type.rb', line 20

def output
  return @data.to_s.inspect.gsub( "\\\\", "\\" )
end

#to_rubyObject



27
28
29
# File 'lib/graphviz/types/arrow_type.rb', line 27

def to_ruby
   @data
end