Class: Tapioca::Gemfile::Gem
- Inherits:
-
Object
- Object
- Tapioca::Gemfile::Gem
- Extended by:
- T::Sig
- Defined in:
- lib/tapioca/gemfile.rb
Instance Method Summary collapse
- #files ⇒ Object
- #full_gem_path ⇒ Object
-
#initialize(spec) ⇒ Gem
constructor
A new instance of Gem.
- #name ⇒ Object
- #rbi_file_name ⇒ Object
- #version ⇒ Object
Constructor Details
Instance Method Details
#files ⇒ Object
102 103 104 105 106 |
# File 'lib/tapioca/gemfile.rb', line 102 def files @spec.full_require_paths.flat_map do |path| Pathname.glob((Pathname.new(path) / "**/*.rb").to_s) end end |
#full_gem_path ⇒ Object
97 98 99 |
# File 'lib/tapioca/gemfile.rb', line 97 def full_gem_path @spec.full_gem_path.to_s end |
#name ⇒ Object
109 110 111 |
# File 'lib/tapioca/gemfile.rb', line 109 def name @spec.name end |
#rbi_file_name ⇒ Object
119 120 121 |
# File 'lib/tapioca/gemfile.rb', line 119 def rbi_file_name "#{name}@#{version}.rbi" end |
#version ⇒ Object
114 115 116 |
# File 'lib/tapioca/gemfile.rb', line 114 def version @spec.version end |