Class: RScriptBase

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

Direct Known Subclasses

RScript

Instance Method Summary collapse

Constructor Details

#initialize(debug: false) ⇒ RScriptBase



12
13
14
# File 'lib/rscript_base.rb', line 12

def initialize(debug: false)
  @debug = debug
end

Instance Method Details

#read(doc) ⇒ Object



16
17
18
# File 'lib/rscript_base.rb', line 16

def read(doc)
  doc.root.xpath('//script').map {|s| run_script(s)}.join(';')
end