Class: Miko::BBPress
Instance Attribute Summary
Attributes inherited from Base
#acct_home, #path, #script, #version
Instance Method Summary collapse
-
#initialize(path) ⇒ BBPress
constructor
A new instance of BBPress.
Methods inherited from Base
Constructor Details
#initialize(path) ⇒ BBPress
Returns a new instance of BBPress.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/scripts/bbpress.rb', line 8 def initialize( path ) super( path ) ## ## Skip any false bbpress.php files ver = File.read( path )[/.*this->version.*/] unless ver.nil? @version = ver[/([\d.]+)/] @acct_home = path.gsub("bbpress.php", "") @script = "BBPress" end end |