File: lib/radiant.rb

Overview
Module Structure
Code

Overview

Module Structure

  module: <Toplevel Module>
  module: Radiant#4
  module: Version#5
has properties
constant: Major #6
constant: Minor #7
constant: Tiny #8
constant: Patch #9
module method: to_s #12
module alias: to_str to_s #15

Code

   1  RADIANT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unless defined? RADIANT_ROOT
   2 
   3  unless defined? Radiant::Version
   4    module Radiant
   5      module Version
   6        Major = '1'
   7        Minor = '0'
   8        Tiny  = '1'
   9        Patch = nil # set to nil for normal release
  10 
  11        class << self
  12          def to_s
  13            [Major, Minor, Tiny, Patch].delete_if{|v| v.nil? }.join('.')
  14          end
  15          alias :to_str :to_s
  16        end
  17      end
  18    end
  19  end