1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Add a Haml::VERSION string.

This commit is contained in:
Nathan Weizenbaum 2008-03-14 21:25:36 -07:00
parent 21451ee6bd
commit 2e6f9f59af

View file

@ -830,6 +830,9 @@ $LOAD_PATH << dir unless $LOAD_PATH.include?(dir)
# Defaults to <tt>['textarea', 'pre']</tt>.
#
module Haml
# A string representing the version of Haml
VERSION = File.read(File.dirname(__FILE__) + '/../VERSION').strip
# This method is called by init.rb,
# which is run by Rails on startup.
# We use it rather than putting stuff straight into init.rb