Class: Numo::Gnuplot::FitItem
- Inherits:
-
Object
- Object
- Numo::Gnuplot::FitItem
- Defined in:
- lib/numo/gnuplot.rb
Instance Method Summary collapse
- #<<(item) ⇒ Object
- #cmd_str ⇒ Object
- #empty? ⇒ Boolean
-
#initialize(expression, datafile) ⇒ FitItem
constructor
:nodoc: all.
Constructor Details
#initialize(expression, datafile) ⇒ FitItem
:nodoc: all
791 792 793 794 795 |
# File 'lib/numo/gnuplot.rb', line 791 def initialize(expression,datafile) @expression = expression @datafile = datafile @items = [] end |
Instance Method Details
#<<(item) ⇒ Object
797 798 799 |
# File 'lib/numo/gnuplot.rb', line 797 def <<(item) @items << item end |
#cmd_str ⇒ Object
805 806 807 |
# File 'lib/numo/gnuplot.rb', line 805 def cmd_str "%s %s %s" % [@expression, OptArg.quote(@datafile), OptArg.parse(*@items)] end |
#empty? ⇒ Boolean
801 802 803 |
# File 'lib/numo/gnuplot.rb', line 801 def empty? @items.empty? end |