Class: R::Support::BatchCollector
- Inherits:
-
Object
- Object
- R::Support::BatchCollector
- Defined in:
- lib/R_interface/rsupport.rb
Overview
Collects assignment strings for R.batch (Phase 4).
Instance Attribute Summary collapse
-
#ops ⇒ Object
readonly
Returns the value of attribute ops.
Instance Method Summary collapse
-
#eval_with_result(assignment_code) ⇒ Object
Same form as a single bridge eval_with_result assignment, e.g.
-
#initialize ⇒ BatchCollector
constructor
A new instance of BatchCollector.
Constructor Details
#initialize ⇒ BatchCollector
Returns a new instance of BatchCollector.
660 661 662 |
# File 'lib/R_interface/rsupport.rb', line 660 def initialize @ops = [] end |
Instance Attribute Details
#ops ⇒ Object (readonly)
Returns the value of attribute ops.
658 659 660 |
# File 'lib/R_interface/rsupport.rb', line 658 def ops @ops end |
Instance Method Details
#eval_with_result(assignment_code) ⇒ Object
Same form as a single bridge eval_with_result assignment, e.g. "#vn <- 1L".
665 666 667 |
# File 'lib/R_interface/rsupport.rb', line 665 def eval_with_result(assignment_code) @ops << assignment_code.to_s end |