Skip to content

Commit 2c3ae61

Browse files
committed
Move Template class docs to the correct namespace [ci-skip]
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.
1 parent dc0f205 commit 2c3ae61

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

actionview/lib/action_view/template/handlers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# frozen_string_literal: true
22

33
module ActionView # :nodoc:
4-
# = Action View Template Handlers
54
class Template # :nodoc:
5+
# = Action View Template Handlers
66
module Handlers # :nodoc:
77
autoload :Raw, "action_view/template/handlers/raw"
88
autoload :ERB, "action_view/template/handlers/erb"

actionview/lib/action_view/template/html.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# frozen_string_literal: true
22

33
module ActionView # :nodoc:
4-
# = Action View HTML Template
54
class Template # :nodoc:
5+
# = Action View HTML Template
66
class HTML # :nodoc:
77
attr_reader :type
88

actionview/lib/action_view/template/raw_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# frozen_string_literal: true
22

33
module ActionView # :nodoc:
4-
# = Action View RawFile Template
54
class Template # :nodoc:
5+
# = Action View RawFile Template
66
class RawFile # :nodoc:
77
attr_accessor :type, :format
88

actionview/lib/action_view/template/renderable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# frozen_string_literal: true
22

33
module ActionView
4-
# = Action View Renderable Template for objects that respond to #render_in
54
class Template
5+
# = Action View Renderable Template for objects that respond to #render_in
66
class Renderable # :nodoc:
77
def initialize(renderable)
88
@renderable = renderable

actionview/lib/action_view/template/text.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# frozen_string_literal: true
22

33
module ActionView # :nodoc:
4-
# = Action View Text Template
54
class Template # :nodoc:
5+
# = Action View Text Template
66
class Text # :nodoc:
77
attr_accessor :type
88

0 commit comments

Comments
 (0)