Class: Mess::Plot

Inherits:
Object
  • Object
show all
Defined in:
lib/mess/plot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePlot

Returns a new instance of Plot.



5
6
7
8
# File 'lib/mess/plot.rb', line 5

def initialize
  @head = Array.new
  @data = Array.new
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



3
4
5
# File 'lib/mess/plot.rb', line 3

def data
  @data
end

#headObject

Returns the value of attribute head.



3
4
5
# File 'lib/mess/plot.rb', line 3

def head
  @head
end

Instance Method Details

#export_dataObject



10
11
12
13
14
15
# File 'lib/mess/plot.rb', line 10

def export_data
  puts @head.join("\t");
  @data.each do |d|
    puts d.join("\t");
  end
end