Sha256: f6c55f9ff6f77b8b63553451bab39f590a09ccc0f20ec9c2c3c1f4d0cc53ad49

Contents?: true

Size: 326 Bytes

Versions: 6

Compression:

Stored size: 326 Bytes

Contents

class GraphViz
  class Types
    class GvDouble < Common
      def check(data)
        return data
      end
      
      def output
        return @data.to_s.inspect.gsub( "\\\\", "\\" )
      end
      
      def to_f
        @data.to_f
      end
      
      alias :to_gv :output
      alias :to_s :output
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby-graphviz-1.0.0 lib/graphviz/types/gv_double.rb
ruby-graphviz-0.9.21 lib/graphviz/types/gv_double.rb
ruby-graphviz-0.9.20 lib/graphviz/types/gv_double.rb
ruby-graphviz-0.9.19 lib/graphviz/types/gv_double.rb
ruby-graphviz-0.9.18 lib/graphviz/types/gv_double.rb
ruby-graphviz-0.9.17 lib/graphviz/types/gv_double.rb