Module: Sakuric
- Defined in:
- lib/version.rb,
lib/sakuric.rb
Overview
inspired by WillPaginate
Defined Under Namespace
Modules: VERSION
Constant Summary collapse
- SCRIPT_BEGUN =
Time.now
Class Method Summary collapse
- .BASEDIR ⇒ Object
-
.get_auto_files(subdir) ⇒ Object
conf files into auto/ dir (mi son rotto di aggiungerli qui uno a uno!).
- .use_ric_gem ⇒ Object
- .VERSION ⇒ Object
Class Method Details
.BASEDIR ⇒ Object
12 13 14 |
# File 'lib/sakuric.rb', line 12 def self.BASEDIR File.(File.dirname(__FILE__) + '/..') end |
.get_auto_files(subdir) ⇒ Object
conf files into auto/ dir (mi son rotto di aggiungerli qui uno a uno!)
21 22 23 24 |
# File 'lib/sakuric.rb', line 21 def self.get_auto_files(subdir) absolute_dir = "#{$SAKURADIR}/lib/#{subdir}" Dir.new(absolute_dir).select{|f| f.match( /\.rb$/ )}.map{|x| subdir + File.basename(x,'.rb') } end |
.use_ric_gem ⇒ Object
16 17 18 |
# File 'lib/sakuric.rb', line 16 def self.use_ric_gem false end |
.VERSION ⇒ Object
8 9 10 |
# File 'lib/sakuric.rb', line 8 def self.VERSION $VERSION = File.read(File.(BASEDIR() + '/VERSION')) # reads version file end |