Sha256: d631d87c9ed071f691293b1998471907642fc86fd54476876a94fca6597c863c
Contents?: true
Size: 788 Bytes
Versions: 1
Compression:
Stored size: 788 Bytes
Contents
# -*- coding: utf-8 -*- module Spacy 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# Spacy
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spacy-0.1.4 | lib/spacy/module.rb |