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.
127 128 129 130 |
# File 'lib/rust/core/types/language.rb', line 127 def initialize(dependent, independent) @dependent = dependent @independent = independent end |
Instance Method Details
#to_R ⇒ Object
132 133 134 |
# File 'lib/rust/core/types/language.rb', line 132 def to_R return "#@dependent ~ #@independent" end |