Class: SRScript
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- SRScript
- Defined in:
- lib/srscript.rb
Instance Method Summary collapse
-
#initialize(pkg_src: nil, home_pg: nil) ⇒ SRScript
constructor
A new instance of SRScript.
Constructor Details
#initialize(pkg_src: nil, home_pg: nil) ⇒ SRScript
Returns a new instance of SRScript.
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 |