Class: CreateRailsApp::Detection::Runtime
- Inherits:
-
Object
- Object
- CreateRailsApp::Detection::Runtime
- Defined in:
- lib/create_rails_app/detection/runtime.rb
Overview
Detects the current Ruby and RubyGems versions.
Instance Method Summary collapse
Instance Method Details
#detect ⇒ RuntimeInfo
16 17 18 19 20 21 |
# File 'lib/create_rails_app/detection/runtime.rb', line 16 def detect RuntimeInfo.new( ruby: Gem::Version.new(RUBY_VERSION), rubygems: Gem::Version.new(Gem::VERSION) ) end |