Class: Rubygems::XcodeprojGenerator::AbstractRubyHeaderProvider
- Inherits:
-
Object
- Object
- Rubygems::XcodeprojGenerator::AbstractRubyHeaderProvider
- Defined in:
- lib/rubygems/xcodeproj_generator/abstract_ruby_header_provider.rb
Instance Attribute Summary collapse
-
#root_path ⇒ Object
readonly
Returns the value of attribute root_path.
Instance Method Summary collapse
- #available? ⇒ Boolean
-
#initialize(root_path) ⇒ AbstractRubyHeaderProvider
constructor
A new instance of AbstractRubyHeaderProvider.
- #ruby_header_paths ⇒ Object
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.(root_path) end |
Instance Attribute Details
#root_path ⇒ Object (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
10 11 12 |
# File 'lib/rubygems/xcodeproj_generator/abstract_ruby_header_provider.rb', line 10 def available? Dir.exist?(root_path) end |
#ruby_header_paths ⇒ Object
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 |