Skip to content

Commit

Permalink
Fix up Ruby docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Nov 1, 2023
1 parent 66495dd commit 8062849
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
20 changes: 10 additions & 10 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -777,10 +777,10 @@ nodes:
comment: |
Represents the use of a case statement.
case true
^^^^^^^^^
when false
end
case true
when false
end
^^^^^^^^^^
- name: ClassNode
fields:
- name: locals
Expand Down Expand Up @@ -818,7 +818,7 @@ nodes:
Represents the use of the `&&=` operator for assignment to a class variable.
@@target &&= value
^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^
- name: ClassVariableOperatorWriteNode
fields:
- name: name
Expand Down Expand Up @@ -1183,13 +1183,13 @@ nodes:
Represents a find pattern in pattern matching.
foo in *bar, baz, *qux
^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^
foo in [*bar, baz, *qux]
^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^
foo in Foo(*bar, baz, *qux)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^
- name: FlipFlopNode
fields:
- name: left
Expand Down Expand Up @@ -1240,7 +1240,7 @@ nodes:
def foo(...)
bar(...)
^^^^^^^^
^^^
end
- name: ForwardingParameterNode
comment: |
Expand Down Expand Up @@ -2237,8 +2237,8 @@ nodes:
begin
rescue Foo, *splat, Bar => ex
^^^^^^
foo
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
end
`Foo, *splat, Bar` are in the `exceptions` field.
Expand Down
1 change: 1 addition & 0 deletions rakelib/rdoc.rake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RDoc::Task.new do |rdoc|
rdoc.main = "README.md"
rdoc.markup = "markdown"
rdoc.rdoc_dir = "doc"
rdoc.options << "--all"

rdoc.rdoc_files.include(
"docs/*.md",
Expand Down
2 changes: 1 addition & 1 deletion templates/lib/prism/serialize.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require "stringio"
if String.instance_method(:unpack1).parameters.none? { |_, name| name == :offset }
String.prepend(
Module.new {
def unpack1(format, offset: 0)
def unpack1(format, offset: 0) # :nodoc:
offset == 0 ? super(format) : self[offset..].unpack1(format)
end
}
Expand Down

0 comments on commit 8062849

Please sign in to comment.