Class: Rails::API::AppTask

Inherits:
Task show all
Defined in:
railties/lib/rails/api/task.rb

Constant Summary

Constants inherited from Task

Task::RDOC_FILES

Instance Method Summary collapse

Methods inherited from Task

#api_main, #configure_rdoc_files, #desc, #initialize, #load_and_configure_sdoc, #setup_horo_variables

Constructor Details

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

Instance Method Details

#api_dirObject



154
155
156
# File 'railties/lib/rails/api/task.rb', line 154

def api_dir
  'doc/api'
end

#component_root_dir(gem_name) ⇒ Object



150
151
152
# File 'railties/lib/rails/api/task.rb', line 150

def component_root_dir(gem_name)
  $:.grep(%r{#{gem_name}[\w.-]*/lib\z}).first[0..-5]
end

#rails_versionObject



158
159
160
# File 'railties/lib/rails/api/task.rb', line 158

def rails_version
  Rails::VERSION::STRING
end