class GraphViz::Types::SplineType
Constants
- ENDP_MASK
- FINAL_POINT_MASK
- FINAL_SPLINE_MASK
- FLOAT_MASK
- POINT_MASK
- SPLINE_MASK
- STARTP_MASK
- TRIPLE_MASK
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
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
triples()
click to toggle source
# File lib/graphviz/types/spline_type.rb, line 64 def triples end
Private Instance Methods
point?()
click to toggle source
# File lib/graphviz/types/spline_type.rb, line 68 def point? not @is_spline end
splite_type?()
click to toggle source
# File lib/graphviz/types/spline_type.rb, line 72 def splite_type? @is_spline end