Class: Rubygems::XcodeprojGenerator::AbstractRubyHeaderProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/rubygems/xcodeproj_generator/abstract_ruby_header_provider.rb

Direct Known Subclasses

Rbenv, Xcode

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root_path) ⇒ AbstractRubyHeaderProvider

Returns a new instance of AbstractRubyHeaderProvider.



6
7
8
# File 'lib/rubygems/xcodeproj_generator/abstract_ruby_header_provider.rb', line 6

def initialize(root_path)
  @root_path = File.expand_path(root_path)
end

Instance Attribute Details

#root_pathObject (readonly)

Returns the value of attribute root_path.



4
5
6
# File 'lib/rubygems/xcodeproj_generator/abstract_ruby_header_provider.rb', line 4

def root_path
  @root_path
end

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


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

def available?
  Dir.exist?(root_path)
end

#ruby_header_pathsObject



14
15
16
# File 'lib/rubygems/xcodeproj_generator/abstract_ruby_header_provider.rb', line 14

def ruby_header_paths
  [base_ruby_header_path, platform_ruby_header_path].compact
end