class Rubygems::XcodeprojGenerator::AbstractRubyHeaderProvider
Attributes
root_path[R]
Public Class Methods
new(root_path)
click to toggle source
# File lib/rubygems/xcodeproj_generator/abstract_ruby_header_provider.rb, line 6 def initialize(root_path) @root_path = File.expand_path(root_path) end
Public Instance Methods
available?()
click to toggle source
# File lib/rubygems/xcodeproj_generator/abstract_ruby_header_provider.rb, line 10 def available? Dir.exist?(root_path) end
ruby_header_paths()
click to toggle source
# 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
Private Instance Methods
base_ruby_header_path()
click to toggle source
# File lib/rubygems/xcodeproj_generator/abstract_ruby_header_provider.rb, line 20 def base_ruby_header_path raise NotImplementedError end
find_path(*parts)
click to toggle source
# File lib/rubygems/xcodeproj_generator/abstract_ruby_header_provider.rb, line 29 def find_path(*parts) pattern = File.join(*parts) Dir[pattern].first end
platform_ruby_header_path()
click to toggle source
# File lib/rubygems/xcodeproj_generator/abstract_ruby_header_provider.rb, line 24 def platform_ruby_header_path return nil unless base_ruby_header_path find_path(base_ruby_header_path, '*darwin*') end