Module: Mactag
- Defined in:
- lib/mactag.rb,
lib/mactag/dsl.rb,
lib/mactag/ctags.rb,
lib/mactag/errors.rb,
lib/mactag/config.rb,
lib/mactag/builder.rb,
lib/mactag/indexer.rb,
lib/mactag/bundler.rb,
lib/mactag/railtie.rb,
lib/mactag/indexer/gem.rb,
lib/mactag/indexer/app.rb,
lib/mactag/indexer/lib.rb,
lib/mactag/indexer/rails.rb,
lib/mactag/indexer/plugin.rb
Defined Under Namespace
Modules: Config, Indexer
Classes: Builder, Bundler, Ctags, Dsl, GemNotFoundError, MactagError, PluginNotFoundError, Railtie
Class Method Summary
(collapse)
Class Method Details
11
12
13
|
# File 'lib/mactag.rb', line 11
def configure(&block)
Mactag::Config.configure(&block)
end
|
+ (Object) current_project
33
34
35
|
# File 'lib/mactag.rb', line 33
def current_project
File.basename(project_root)
end
|
+ (Object) project_root
25
26
27
28
29
30
31
|
# File 'lib/mactag.rb', line 25
def project_root
if rails_app?
::Rails.root
else
ENV['PWD']
end
end
|
+ (Boolean) rails_app?
15
16
17
|
# File 'lib/mactag.rb', line 15
def rails_app?
defined?(::Rails)
end
|
+ (Object) rails_version
19
20
21
22
23
|
# File 'lib/mactag.rb', line 19
def rails_version
if rails_app?
::Rails.version
end
end
|