Class: RC
- Inherits:
-
Object
- Object
- RC
- Defined in:
- lib/util/exec_ruby.rb
Overview
Class RC is used only as a context for all ruby chunks in the rmarkdown file. This allows for chunks to access local variables defined in other chunks.
Instance Attribute Summary collapse
-
#out_list ⇒ Object
readonly
Returns the value of attribute out_list.
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize ⇒ RC
constructor
A new instance of RC.
- #outputs(obj) ⇒ Object
- #reset_outputs ⇒ Object
Constructor Details
Instance Attribute Details
#out_list ⇒ Object (readonly)
Returns the value of attribute out_list.
33 34 35 |
# File 'lib/util/exec_ruby.rb', line 33 def out_list @out_list end |
Instance Method Details
#get_binding ⇒ Object
47 48 49 |
# File 'lib/util/exec_ruby.rb', line 47 def get_binding binding end |
#outputs(obj) ⇒ Object
39 40 41 |
# File 'lib/util/exec_ruby.rb', line 39 def outputs(obj) @out_list = R.c(@out_list, obj) end |
#reset_outputs ⇒ Object
43 44 45 |
# File 'lib/util/exec_ruby.rb', line 43 def reset_outputs @out_list = nil end |