Class: NextRails::BundleReport::RubyVersionCompatibility

Inherits:
Object
  • Object
show all
Defined in:
lib/next_rails/bundle_report/ruby_version_compatibility.rb

Constant Summary collapse

MINIMAL_VERSION =
1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gems: NextRails::GemInfo.all, options: {}) ⇒ RubyVersionCompatibility

Returns a new instance of RubyVersionCompatibility.



7
8
9
10
# File 'lib/next_rails/bundle_report/ruby_version_compatibility.rb', line 7

def initialize(gems: NextRails::GemInfo.all, options: {})
  @gems = gems
  @options = options
end

Instance Attribute Details

#gemsObject (readonly)

Returns the value of attribute gems.



5
6
7
# File 'lib/next_rails/bundle_report/ruby_version_compatibility.rb', line 5

def gems
  @gems
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/next_rails/bundle_report/ruby_version_compatibility.rb', line 5

def options
  @options
end

Instance Method Details

#generateObject



12
13
14
15
16
# File 'lib/next_rails/bundle_report/ruby_version_compatibility.rb', line 12

def generate
  return invalid_message unless valid?

  message
end