Rails::API::StableTask Ruby on Rails 5.1.2 Class Rails::API::StableTask < Rails::API::RepoTask railties/lib/rails/api/task.rb Methods R rails_version Instance Public methods rails_version() Link Source: show | on GitHub # File railties/lib/rails/api/task.rb, line 170 def rails_version File.read("RAILS_VERSION").strip end