diff options
author | Jamis Buck <jamis@37signals.com> | 2005-10-16 15:42:03 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-10-16 15:42:03 +0000 |
commit | 1c057b7237c98d948b08b80c0ac403cda3028dab (patch) | |
tree | 455dc930b10a4408f4b25fb97c156a6abdb8a755 /actionpack/lib/action_view | |
parent | 59f1df1b5b37a9e16a6b03d931c7b620075034d5 (diff) | |
download | rails-1c057b7237c98d948b08b80c0ac403cda3028dab.tar.gz rails-1c057b7237c98d948b08b80c0ac403cda3028dab.tar.bz2 rails-1c057b7237c98d948b08b80c0ac403cda3028dab.zip |
Update/clean up AP documentation (rdoc)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 9 | ||||
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index f9b35260bd..4c065a0ae5 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -135,7 +135,7 @@ module ActionView #:nodoc: @@template_handlers = {} - module CompiledTemplates + module CompiledTemplates #:nodoc: # holds compiled template code end include CompiledTemplates @@ -162,6 +162,13 @@ module ActionView #:nodoc: end end + # Register a class that knows how to handle template files with the given + # extension. This can be used to implement new template types. + # The constructor for the class must take the ActiveView::Base instance + # as a parameter, and the class must implement a #render method that + # takes the contents of the template to render as well as the Hash of + # local assigns available to the template. The #render method ought to + # return the rendered template as a string. def self.register_template_handler(extension, klass) @@template_handlers[extension] = klass end diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index 74f7337289..4ead8a816f 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -252,7 +252,7 @@ module ActionView cycle.reset end - class Cycle + class Cycle #:nodoc: attr_reader :values def initialize(first_value, *values) |