Sha256: 1a99a324c5ad7ac406447586c2038be19ad606a942fd8fd024f871479f7ec442
Contents?: true
Size: 748 Bytes
Versions: 6
Compression:
Stored size: 748 Bytes
Contents
# -*- coding: utf-8 -*- module Rucy module Module def name () super.split('::')[-2] end def version () open(root_dir 'VERSION') {|f| f.readline.chomp} end def root_dir (path = '') File.expand_path "../../../#{path}", __FILE__ end def include_dir () root_dir 'include' end def lib_dir () root_dir 'lib' end def task_dir () 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 extend self end# Module end# Rucy
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
rucy-0.1.12 | lib/rucy/module.rb |
rucy-0.1.11 | lib/rucy/module.rb |
rucy-0.1.10 | lib/rucy/module.rb |
rucy-0.1.9 | lib/rucy/module.rb |
rucy-0.1.8 | lib/rucy/module.rb |
rucy-0.1.7 | lib/rucy/module.rb |