lib/gnuplotrb/staff/datablock.rb
##
# Get quoted filename if datablock stored in file or output
# datablock to gnuplot and return its name otherwise.
# 
# @param gnuplot_term [Terminal] should be given if datablock not stored in file
# @return [String] quoted filename if data stored in file (see contructor)
# @return [String] Gnuplot's datablock name otherwise
Get quoted filename if datablock stored in file or output
datablock to gnuplot and return its name otherwise.
Get quoted filename if datablock stored in file or output datablock to gnuplot and return its name otherwise .
def name(gnuplot_term = nil)
      if @stored_in_file
        "'#{@file_name}'"
      else
        fail(ArgumentError, 'No terminal given to output datablock') unless gnuplot_term
        gnuplot_term.store_datablock(@data)
      end
    end
def name ( gnuplot_term = nil ) if @stored_in_file "'#{@file_name}'" else fail ( ArgumentError , 'No terminal given to output datablock' ) unless gnuplot_term gnuplot_term . store_datablock ( @data ) end end
Get quoted filename if datablock stored in file or output
datablock to gnuplot and return its name otherwise.
Get quoted filename if datablock stored in file or output datablock to gnuplot and return its name otherwise .
quoted filename if data stored in file
quoted filename if data stored in file
String
Gnuplot's datablock name otherwise
Gnuplot ' s datablock name otherwise
String
gnuplot_term
should be given if datablock not stored in file
should be given if datablock not stored in file