123456789_123456789_123456789_123456789_123456789_

Class: Rails::API::StableTask

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, RepoTask, Task, RDoc::Task
Instance Chain:
self, RepoTask, Task, RDoc::Task
Inherits: Rails::API::RepoTask
Defined in: railties/lib/rails/api/task.rb

Constant Summary

Task - Inherited

RDOC_FILES

Class Method Summary

Task - Inherited

Instance Method Summary

RepoTask - Inherited

Task - Inherited

#api_main, #configure_rdoc_files, #configure_sdoc,
#desc

Hack, ignore the desc calls performed by the original initializer.

Constructor Details

This class inherits a constructor from Rails::API::Task

Instance Method Details

#badge_version

[ GitHub ]

  
# File 'railties/lib/rails/api/task.rb', line 226

def badge_version
  "v#{rails_version}"
end

#canonical_url

[ GitHub ]

  
# File 'railties/lib/rails/api/task.rb', line 230

def canonical_url
  "https://api.rubyonrails.org/#{badge_version}"
end

#rails_version

[ GitHub ]

  
# File 'railties/lib/rails/api/task.rb', line 222

def rails_version
  File.read("RAILS_VERSION").strip
end