Skip to content

Commit 86c41b0

Browse files
committed
Move :stopdoc: directive
If this is at the top level, it stops the documentation of the entire module, but not only the part in this file.
1 parent d54b271 commit 86c41b0

File tree

15 files changed

+60
-30
lines changed

15 files changed

+60
-30
lines changed

lib/irb/cmd/chws.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
require_relative "nop"
1414
require_relative "../ext/change-ws"
1515

16-
# :stopdoc:
1716
module IRB
17+
# :stopdoc:
18+
1819
module ExtendCommand
1920

2021
class CurrentWorkingWorkspace < Nop
@@ -30,5 +31,6 @@ def execute(*obj)
3031
end
3132
end
3233
end
34+
35+
# :startdoc:
3336
end
34-
# :startdoc:

lib/irb/cmd/fork.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
#
1111
#
1212

13+
require_relative "nop"
1314

14-
# :stopdoc:
1515
module IRB
16+
# :stopdoc:
17+
1618
module ExtendCommand
1719
class Fork < Nop
1820
def execute
@@ -33,5 +35,6 @@ class << self
3335
end
3436
end
3537
end
38+
39+
# :startdoc:
3640
end
37-
# :startdoc:

lib/irb/cmd/help.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111

1212
require_relative "nop"
1313

14-
# :stopdoc:
1514
module IRB
15+
# :stopdoc:
16+
1617
module ExtendCommand
1718
class Help < Nop
1819
def execute(*names)
@@ -43,5 +44,6 @@ def execute(*names)
4344
end
4445
end
4546
end
47+
48+
# :startdoc:
4649
end
47-
# :startdoc:

lib/irb/cmd/info.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
require_relative "nop"
44

5-
# :stopdoc:
65
module IRB
6+
# :stopdoc:
7+
78
module ExtendCommand
89
class Info < Nop
910
def execute
@@ -28,5 +29,6 @@ def inspect
2829
end
2930
end
3031
end
32+
33+
# :startdoc:
3134
end
32-
# :startdoc:

lib/irb/cmd/load.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
require_relative "nop"
1414
require_relative "../ext/loader"
1515

16-
# :stopdoc:
1716
module IRB
17+
# :stopdoc:
18+
1819
module ExtendCommand
1920
class Load < Nop
2021
include IrbLoader
@@ -63,5 +64,5 @@ def execute(file_name)
6364
end
6465
end
6566

67+
# :startdoc:
6668
end
67-
# :startdoc:

lib/irb/cmd/ls.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
require_relative "nop"
55
require_relative "../color"
66

7-
# :stopdoc:
87
module IRB
8+
# :stopdoc:
9+
910
module ExtendCommand
1011
class Ls < Nop
1112
def execute(*arg, grep: nil)
@@ -97,5 +98,6 @@ def screen_width
9798
private_constant :Output
9899
end
99100
end
101+
102+
# :startdoc:
100103
end
101-
# :startdoc:

lib/irb/cmd/measure.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
require_relative "nop"
22

3-
# :stopdoc:
43
module IRB
4+
# :stopdoc:
5+
56
module ExtendCommand
67
class Measure < Nop
78
def initialize(*args)
@@ -39,5 +40,6 @@ def execute(type = nil, arg = nil, &block)
3940
end
4041
end
4142
end
43+
44+
# :startdoc:
4245
end
43-
# :startdoc:

lib/irb/cmd/nop.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
#
1010
#
1111
#
12-
# :stopdoc:
1312
module IRB
13+
# :stopdoc:
14+
1415
module ExtendCommand
1516
class Nop
1617

@@ -41,5 +42,6 @@ def execute(*opts)
4142
end
4243
end
4344
end
45+
46+
# :startdoc:
4447
end
45-
# :startdoc:

lib/irb/cmd/pushws.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
require_relative "nop"
1414
require_relative "../ext/workspaces"
1515

16-
# :stopdoc:
1716
module IRB
17+
# :stopdoc:
18+
1819
module ExtendCommand
1920
class Workspaces < Nop
2021
def execute(*obj)
@@ -36,5 +37,6 @@ def execute(*obj)
3637
end
3738
end
3839
end
40+
41+
# :startdoc:
3942
end
40-
# :startdoc:

lib/irb/cmd/show_source.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
require_relative "../color"
55
require_relative "../ruby-lex"
66

7-
# :stopdoc:
87
module IRB
8+
# :stopdoc:
9+
910
module ExtendCommand
1011
class ShowSource < Nop
1112
def execute(str = nil)
@@ -89,5 +90,6 @@ def bold(str)
8990
private_constant :Source
9091
end
9192
end
93+
94+
# :startdoc:
9295
end
93-
# :startdoc:

0 commit comments

Comments
 (0)