Class: R::Support::BatchCollector

Inherits:
Object
  • Object
show all
Defined in:
lib/R_interface/rsupport.rb

Overview

Collects assignment strings for R.batch (Phase 4).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBatchCollector

Returns a new instance of BatchCollector.



660
661
662
# File 'lib/R_interface/rsupport.rb', line 660

def initialize
  @ops = []
end

Instance Attribute Details

#opsObject (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