Module: Dynabix
- Defined in:
- lib/dynabix.rb,
lib/dynabix/metadata.rb
Overview
An ActiveRecord 3.x Ruby gem for attribute serialization.
Defined Under Namespace
Modules: Metadata
Constant Summary collapse
- WINDOWS =
RbConfig::CONFIG['host_os'] =~ /mswin|mingw/i
- CYGWIN =
RbConfig::CONFIG['host_os'] =~ /cygwin/i
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
13 14 15 16 17 18 |
# File 'lib/dynabix.rb', line 13 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 |