Module: Oct
- Defined in:
- lib/oct.rb,
lib/oct/app.rb,
lib/oct/oct.rb,
lib/oct/settings.rb
Overview
Master namespace
Defined Under Namespace
Classes: App, FileStat, Settings
Constant Summary collapse
- WINDOWS =
RbConfig::CONFIG['host_os'] =~ /mswin|mingw/i
- CYGWIN =
RbConfig::CONFIG['host_os'] =~ /cygwin/i
- AVAILABLE_ACTIONS =
%w[
Class Method Summary collapse
-
.version ⇒ String
Contents of the VERSION file.
Class Method Details
.version ⇒ String
Contents of the VERSION file
Example format: 0.0.1
17 18 19 20 21 22 |
# File 'lib/oct.rb', line 17 def self.version version_info_file = File.join(File.dirname(__FILE__), *%w[.. VERSION]) File.open(version_info_file, "r") do |f| f.read.strip end end |