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


161
162
163
# File 'railties/lib/rails/api/task.rb', line 161

def api_dir
  'doc/api'
end

#component_root_dir(gem_name) ⇒ Object


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

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

#rails_versionObject


165
166
167
# File 'railties/lib/rails/api/task.rb', line 165

def rails_version
  Rails::VERSION::STRING
end