Class: Graph::Function::Configuration
- Inherits:
-
Object
- Object
- Graph::Function::Configuration
- Defined in:
- lib/graph/function.rb
Instance Attribute Summary collapse
-
#memory ⇒ Object
Returns the value of attribute memory.
-
#output ⇒ Object
Returns the value of attribute output.
-
#step ⇒ Object
Returns the value of attribute step.
-
#terminal ⇒ Object
Returns the value of attribute terminal.
-
#trials ⇒ Object
Returns the value of attribute trials.
Instance Method Summary collapse
- #initialize ⇒ Configuration constructor
Constructor Details
#initialize ⇒ Configuration
54 55 56 57 58 59 60 61 |
# File 'lib/graph/function.rb', line 54 def initialize @terminal = 'x11' @output = '.' @step = (0..10_000).step(1000).to_a # these are particular to GF, not Gnuplot @trials = 1 @memory = false end |
Instance Attribute Details
#memory ⇒ Object
Returns the value of attribute memory.
49 50 51 |
# File 'lib/graph/function.rb', line 49 def memory @memory end |
#output ⇒ Object
Returns the value of attribute output.
47 48 49 |
# File 'lib/graph/function.rb', line 47 def output @output end |
#step ⇒ Object
Returns the value of attribute step.
48 49 50 |
# File 'lib/graph/function.rb', line 48 def step @step end |
#terminal ⇒ Object
Returns the value of attribute terminal.
47 48 49 |
# File 'lib/graph/function.rb', line 47 def terminal @terminal end |
#trials ⇒ Object
Returns the value of attribute trials.
49 50 51 |
# File 'lib/graph/function.rb', line 49 def trials @trials end |