Class: Rails::API::StableTask
- Defined in:
- lib/rails/api/task.rb
Constant Summary
Constants inherited from Task
Instance Method Summary collapse
Methods inherited from RepoTask
#api_dir, #component_root_dir, #configure_sdoc
Methods inherited from Task
#api_main, #configure_rdoc_files, #configure_sdoc, #desc, #initialize, #setup_horo_variables
Constructor Details
This class inherits a constructor from Rails::API::Task
Instance Method Details
#badge_version ⇒ Object
226 227 228 |
# File 'lib/rails/api/task.rb', line 226 def badge_version "v#{rails_version}" end |
#canonical_url ⇒ Object
230 231 232 |
# File 'lib/rails/api/task.rb', line 230 def canonical_url "https://api.rubyonrails.org/#{badge_version}" end |
#rails_version ⇒ Object
222 223 224 |
# File 'lib/rails/api/task.rb', line 222 def rails_version File.read("RAILS_VERSION").strip end |