Class: Rust::SimpleFormula
Instance Method Summary collapse
-
#initialize(dependent, independent) ⇒ SimpleFormula
constructor
A new instance of SimpleFormula.
- #to_R ⇒ Object
Constructor Details
#initialize(dependent, independent) ⇒ SimpleFormula
Returns a new instance of SimpleFormula.
38 39 40 41 |
# File 'lib/rust-calls.rb', line 38 def initialize(dependent, independent) @dependent = dependent @independent = independent end |
Instance Method Details
#to_R ⇒ Object
43 44 45 |
# File 'lib/rust-calls.rb', line 43 def to_R return "#@dependent ~ #@independent" end |