summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUfuk Kayserilioglu <ufuk.kayserilioglu@shopify.com>2024-03-06 14:32:24 -0500
committergit <svn-admin@ruby-lang.org>2024-03-06 21:37:51 +0000
commitddc81ee3f996308482bc566c3048c5965f608ad0 (patch)
tree75288958eb4844717166ce2a489b4320d1a50050
parent2e1d735dced20edc675654983ada09382f0d00f0 (diff)
[ruby/prism] Fix some missing methods/signatures in RBIs
https://github.com/ruby/prism/commit/1d87b8c46c
-rw-r--r--prism/templates/lib/prism/node.rb.erb5
1 files changed, 5 insertions, 0 deletions
diff --git a/prism/templates/lib/prism/node.rb.erb b/prism/templates/lib/prism/node.rb.erb
index 72d291e815..12a984e5a2 100644
--- a/prism/templates/lib/prism/node.rb.erb
+++ b/prism/templates/lib/prism/node.rb.erb
@@ -97,6 +97,11 @@ module Prism
def type
raise NoMethodError, "undefined method `type' for #{inspect}"
end
+
+ # Returns a string representation of the node.
+ def inspect(inspector = NodeInspector.new)
+ raise NoMethodError, "undefined method `inspect' for #{inspect}"
+ end
end
<%- nodes.each do |node| -%>