Class: SRScript

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/srscript.rb

Instance Method Summary collapse

Constructor Details

#initialize(pkg_src: nil, home_pg: nil) ⇒ SRScript

Returns a new instance of SRScript.

Raises:



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/srscript.rb', line 16

def initialize(pkg_src: nil, home_pg: nil)

  raise SRScriptError, 'pkg_src cannot be nil' unless pkg_src

  super()
  @home_pg = home_pg
  @url_base = pkg_src + '/'

  @rscript = RScriptRW.new pkg_src: pkg_src

end