Skip to content

Commit

Permalink
Merge pull request #1292 from eregon/use-kind-for-ruby-signature
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Aug 20, 2023
2 parents e39f861 + ffed352 commit 613c6ff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ def c_type
end
end

def ruby_type
options[:kind] || "Node"
end

def java_type
options[:kind] || "Node"
end
Expand All @@ -42,7 +46,7 @@ class NodeParam < Param
include KindTypes

def rbs_class
"Node"
ruby_type
end
end

Expand All @@ -52,7 +56,7 @@ class OptionalNodeParam < Param
include KindTypes

def rbs_class
"Node?"
"#{ruby_type}?"
end
end

Expand Down

0 comments on commit 613c6ff

Please sign in to comment.