Class: Miko::BBPress

Inherits:
Base
  • Object
show all
Defined in:
lib/scripts/bbpress.rb

Instance Attribute Summary

Attributes inherited from Base

#acct_home, #path, #script, #version

Instance Method Summary collapse

Methods inherited from Base

#showVersion

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