Class: CreateRailsApp::Detection::Runtime

Inherits:
Object
  • Object
show all
Defined in:
lib/create_rails_app/detection/runtime.rb

Overview

Detects the current Ruby and RubyGems versions.

Instance Method Summary collapse

Instance Method Details

#detectRuntimeInfo



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