Sha256: e28976787cc441cb32cf8949b3400a3398f98fa20e0c38ff3d14f6845a15ac56
Contents?: true
Size: 784 Bytes
Versions: 1
Compression:
Stored size: 784 Bytes
Contents
# -*- coding: utf-8 -*- module Xot extend module ClassMethods def root_dir () File.expand_path(File.join File.dirname(__FILE__), '..', '..') end def include_dirs () [File.join(root_dir, 'include')] end def library_dirs () %w[lib].map {|dir| File.join root_dir, dir} end def task_dir () File.join root_dir, 'task' end def load_tasks (*names) if names.empty? Dir["#{task_dir}/**/*.rake"].each {|path| load path} else names.each do |name| path = "#{task_dir}/#{name}.rake" load path if File.exist? path end end end def version () open(File.join root_dir, 'VERSION') {|f| f.readline.chomp} end self end# ClassMethods end# Xot
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xot-0.1.4 | lib/xot/module.rb |