Class: GraphViz::Types::ArrowType

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

Instance Method Summary (collapse)

Methods inherited from Common

#initialize, #source

Constructor Details

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

Instance Method Details

- (Object) check(data)



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

def check(data)
  return data
end

- (Object) output 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

- (Object) to_ruby



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

def to_ruby
   @data
end