Class: Degem::Gemfile
- Inherits:
-
Object
- Object
- Degem::Gemfile
- Defined in:
- lib/degem/gemfile.rb
Instance Method Summary collapse
-
#initialize(dsl:, gem_specification:) ⇒ Gemfile
constructor
A new instance of Gemfile.
- #rails? ⇒ Boolean
- #rubygems ⇒ Object
Constructor Details
#initialize(dsl:, gem_specification:) ⇒ Gemfile
Returns a new instance of Gemfile.
5 6 7 8 |
# File 'lib/degem/gemfile.rb', line 5 def initialize(dsl:, gem_specification:) @dsl = dsl @gem_specification = gem_specification end |
Instance Method Details
#rails? ⇒ Boolean
17 18 19 |
# File 'lib/degem/gemfile.rb', line 17 def rails? !!rubygems.find(&:rails?) end |