class Convenlu::ConventionFile
Public Class Methods
path(json_file)
click to toggle source
# File lib/convenlu/convention_file.rb, line 7 def self.path(json_file) development_path = File.join(Dir.pwd, 'lib', 'convenlu', json_file) if Dir.pwd.split('/')[-1] == 'convenlu' || File.exist?(development_path) development_path else File.join(Gem.dir, 'gems', "convenlu-#{Convenlu::VERSION}", 'lib', 'convenlu', json_file) end end