Parent

GraphViz::Types::SplineType

Public Instance Methods

check(data) click to toggle source
# File lib/graphviz/types/spline_type.rb, line 29
def check(data)
  unless SPLINE_MASK.match(data).nil?
     @is_spline = true
     return data
  end
  unless FINAL_POINT_MASK.match(data).nil?
     @is_spline = false
     return data
  end
  return nil if data.empty?

  raise SplineTypeException, "Invalid spline type value"
end
endp() click to toggle source
# File lib/graphviz/types/spline_type.rb, line 58
def endp
end
output() click to toggle source
# File lib/graphviz/types/spline_type.rb, line 43
def output
  return @data.to_s.inspect.gsub( "\\\\", "\\" )
end
Also aliased as: to_gv, to_s
point() click to toggle source
# File lib/graphviz/types/spline_type.rb, line 50
def point
  if point?
    "[#{@data}]".to_ruby
  else
    # TODO!
  end
end
startp() click to toggle source
# File lib/graphviz/types/spline_type.rb, line 61
def startp
end
to_gv() click to toggle source
Alias for: output
to_s() click to toggle source
Alias for: output
triples() click to toggle source
# File lib/graphviz/types/spline_type.rb, line 64
def triples
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.