Class: Prospector::RubyVersion
- Inherits:
-
Object
- Object
- Prospector::RubyVersion
- Extended by:
- Forwardable
- Defined in:
- lib/prospector/ruby_version.rb
Instance Method Summary collapse
-
#initialize ⇒ RubyVersion
constructor
A new instance of RubyVersion.
- #to_json ⇒ Object
Constructor Details
#initialize ⇒ RubyVersion
Returns a new instance of RubyVersion.
8 9 10 |
# File 'lib/prospector/ruby_version.rb', line 8 def initialize @ruby_version = Bundler.ruby_version end |
Instance Method Details
#to_json ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/prospector/ruby_version.rb', line 12 def to_json { engine: engine, engine_version: engine_version, version: version, patch_level: patch_level } end |