class Ecogem::Path
Attributes
dir[R]
Public Class Methods
new(dir)
click to toggle source
# File lib/ecogem/path.rb, line 5 def initialize(dir) @dir = dir end
Public Instance Methods
gemfile()
click to toggle source
# File lib/ecogem/path.rb, line 13 def gemfile @gemfile ||= begin ::Ecogem::Gemfile.new(gemfile_path) if ::File.file?(gemfile_path) end end
Private Instance Methods
gemfile_path()
click to toggle source
# File lib/ecogem/path.rb, line 9 def gemfile_path @gemfile_path ||= ::File.expand_path("#{dir}/Ecogemfile") end