Class: Rust::SimpleFormula

Inherits:
Object show all
Defined in:
lib/rust-calls.rb

Instance Method Summary collapse

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_RObject



43
44
45
# File 'lib/rust-calls.rb', line 43

def to_R
    return "#@dependent ~ #@independent"
end