Class: Rubygems::XcodeprojGenerator::Rbenv

Inherits:
AbstractRubyHeaderProvider show all
Defined in:
lib/rubygems/xcodeproj_generator/rbenv.rb

Constant Summary collapse

DEFAULT_ROOT_PATH =
'~/.rbenv'.freeze
VERSIONS_PATH =
'versions'.freeze

Instance Attribute Summary

Attributes inherited from AbstractRubyHeaderProvider

#root_path

Instance Method Summary collapse

Methods inherited from AbstractRubyHeaderProvider

#available?, #ruby_header_paths

Constructor Details

#initialize(root_path = nil) ⇒ Rbenv

Returns a new instance of Rbenv.



9
10
11
12
# File 'lib/rubygems/xcodeproj_generator/rbenv.rb', line 9

def initialize(root_path = nil)
  root_path ||= ENV['RBENV_ROOT'] || DEFAULT_ROOT_PATH
  super(root_path)
end