diff options
Diffstat (limited to 'yarp/templates/template.rb')
-rwxr-xr-x | yarp/templates/template.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/yarp/templates/template.rb b/yarp/templates/template.rb index 68df4524f7..75c337d7b8 100755 --- a/yarp/templates/template.rb +++ b/yarp/templates/template.rb @@ -23,6 +23,10 @@ module KindTypes end end + def ruby_type + options[:kind] || "Node" + end + def java_type options[:kind] || "Node" end @@ -42,7 +46,7 @@ class NodeParam < Param include KindTypes def rbs_class - "Node" + ruby_type end end @@ -52,7 +56,7 @@ class OptionalNodeParam < Param include KindTypes def rbs_class - "Node?" + "#{ruby_type}?" end end |