Class: Mess::Plot
- Inherits:
-
Object
- Object
- Mess::Plot
- Defined in:
- lib/mess/plot.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#head ⇒ Object
Returns the value of attribute head.
Instance Method Summary collapse
- #export_data ⇒ Object
-
#initialize ⇒ Plot
constructor
A new instance of Plot.
Constructor Details
#initialize ⇒ Plot
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
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/mess/plot.rb', line 3 def data @data end |
#head ⇒ Object
Returns the value of attribute head.
3 4 5 |
# File 'lib/mess/plot.rb', line 3 def head @head end |
Instance Method Details
#export_data ⇒ Object
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 |