Class: Miko::E107
Instance Attribute Summary
Attributes inherited from Base
#acct_home, #path, #script, #version
Instance Method Summary collapse
-
#initialize(path) ⇒ E107
constructor
A new instance of E107.
Methods inherited from Base
Constructor Details
#initialize(path) ⇒ E107
Returns a new instance of E107.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/scripts/e107.rb', line 5 def initialize( path ) super( path ) ## Load ver ver = File.read( path )[/.*e107_version.*/] unless ver.nil? @version = ver.split("=")[1][/([\d.]+)/] @acct_home = path.gsub("e107_admin/ver.php", "") @script = "e107" end end |