Class: GraphViz::Types::GvDouble
- Inherits:
-
Common
- Object
- Common
- GraphViz::Types::GvDouble
show all
- Defined in:
- lib/graphviz/types/gv_double.rb
Instance Method Summary
collapse
Methods inherited from Common
#initialize, #source
Instance Method Details
#check(data) ⇒ Object
4
5
6
|
# File 'lib/graphviz/types/gv_double.rb', line 4
def check(data)
return data
end
|
#output ⇒ Object
Also known as:
to_gv, to_s
8
9
10
|
# File 'lib/graphviz/types/gv_double.rb', line 8
def output
return @data.to_s.inspect.gsub( "\\\\", "\\" )
end
|
#to_f ⇒ Object
12
13
14
|
# File 'lib/graphviz/types/gv_double.rb', line 12
def to_f
@data.to_f
end
|