Class: Miko::Base
- Inherits:
-
Object
- Object
- Miko::Base
- Defined in:
- lib/miko/base.rb
Direct Known Subclasses
BBPress, Concrete5, Drupal, E107, Joomla, Magento, ModX, Moodle, MyBB, PHPBB, SMF, Wordpress
Instance Attribute Summary collapse
-
#acct_home ⇒ Object
Returns the value of attribute acct_home.
-
#path ⇒ Object
Returns the value of attribute path.
-
#script ⇒ Object
Returns the value of attribute script.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(path) ⇒ Base
constructor
A new instance of Base.
-
#showVersion ⇒ Object
Output formatted version string.
Constructor Details
#initialize(path) ⇒ Base
Returns a new instance of Base.
10 11 12 |
# File 'lib/miko/base.rb', line 10 def initialize( path ) @path = path end |
Instance Attribute Details
#acct_home ⇒ Object
Returns the value of attribute acct_home.
8 9 10 |
# File 'lib/miko/base.rb', line 8 def acct_home @acct_home end |
#path ⇒ Object
Returns the value of attribute path.
8 9 10 |
# File 'lib/miko/base.rb', line 8 def path @path end |
#script ⇒ Object
Returns the value of attribute script.
8 9 10 |
# File 'lib/miko/base.rb', line 8 def script @script end |
#version ⇒ Object
Returns the value of attribute version.
8 9 10 |
# File 'lib/miko/base.rb', line 8 def version @version end |
Instance Method Details
#showVersion ⇒ Object
Output formatted version string
15 16 17 18 19 20 21 |
# File 'lib/miko/base.rb', line 15 def showVersion unless defined?(@version).nil? unless @version.nil? or @version.empty? "%-20s %-30s %20s" % [ @script, @version, @acct_home] end end end |