Skip to content

Commit

Permalink
Move Template class docs to the correct namespace [ci-skip]
Browse files Browse the repository at this point in the history
Documentation of a class should be defined above the class definition,
not on the parent namespace.
This fixes the documentation of ActionView::Template::Renderable showing
up in ActionView::Template.
Most of the others are marked with `:nodoc:` anyway, so it shouldn't affect
their documentation.
  • Loading branch information
p8 committed Mar 30, 2023
1 parent dc0f205 commit 2c3ae61
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion actionview/lib/action_view/template/handlers.rb
@@ -1,8 +1,8 @@
# frozen_string_literal: true

module ActionView # :nodoc:
# = Action View Template Handlers
class Template # :nodoc:
# = Action View Template Handlers
module Handlers # :nodoc:
autoload :Raw, "action_view/template/handlers/raw"
autoload :ERB, "action_view/template/handlers/erb"
Expand Down
2 changes: 1 addition & 1 deletion actionview/lib/action_view/template/html.rb
@@ -1,8 +1,8 @@
# frozen_string_literal: true

module ActionView # :nodoc:
# = Action View HTML Template
class Template # :nodoc:
# = Action View HTML Template
class HTML # :nodoc:
attr_reader :type

Expand Down
2 changes: 1 addition & 1 deletion actionview/lib/action_view/template/raw_file.rb
@@ -1,8 +1,8 @@
# frozen_string_literal: true

module ActionView # :nodoc:
# = Action View RawFile Template
class Template # :nodoc:
# = Action View RawFile Template
class RawFile # :nodoc:
attr_accessor :type, :format

Expand Down
2 changes: 1 addition & 1 deletion actionview/lib/action_view/template/renderable.rb
@@ -1,8 +1,8 @@
# frozen_string_literal: true

module ActionView
# = Action View Renderable Template for objects that respond to #render_in
class Template
# = Action View Renderable Template for objects that respond to #render_in
class Renderable # :nodoc:
def initialize(renderable)
@renderable = renderable
Expand Down
2 changes: 1 addition & 1 deletion actionview/lib/action_view/template/text.rb
@@ -1,8 +1,8 @@
# frozen_string_literal: true

module ActionView # :nodoc:
# = Action View Text Template
class Template # :nodoc:
# = Action View Text Template
class Text # :nodoc:
attr_accessor :type

Expand Down

0 comments on commit 2c3ae61

Please sign in to comment.