aboutsummaryrefslogtreecommitdiffstats
path: root/yarp
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-08-30 16:12:50 -0400
committergit <svn-admin@ruby-lang.org>2023-08-30 20:41:40 +0000
commitc0cb9efb16993b0898979844c54207f979b2bd44 (patch)
tree7f66c2479193dac6a8e4733c069d8dcedec9d191 /yarp
parentff024150e766a0db5ee9517ab1b0e7c84beca14b (diff)
downloadruby-c0cb9efb16993b0898979844c54207f979b2bd44.tar.gz
[ruby/yarp] Fix up Rust config.yml reading
https://github.com/ruby/yarp/commit/087f367847
Diffstat (limited to 'yarp')
-rw-r--r--yarp/config.yml4
-rwxr-xr-xyarp/templates/template.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/yarp/config.yml b/yarp/config.yml
index b1e21edf9e..32a605c61d 100644
--- a/yarp/config.yml
+++ b/yarp/config.yml
@@ -773,7 +773,7 @@ nodes:
@@target ||= value
^^^^^^^^^^^^^^^^^^
- name: ClassVariableReadNode
- child_nodes:
+ fields:
- name: name
type: constant
comment: |
@@ -782,7 +782,7 @@ nodes:
@@foo
^^^^^
- name: ClassVariableTargetNode
- child_nodes:
+ fields:
- name: name
type: constant
comment: |
diff --git a/yarp/templates/template.rb b/yarp/templates/template.rb
index c72fdbc2c9..ec731c3e2f 100755
--- a/yarp/templates/template.rb
+++ b/yarp/templates/template.rb
@@ -241,7 +241,7 @@ module YARP
# Represents an individual flag within a set of flags.
class Flag
attr_reader :name, :camelcase, :comment
-
+
def initialize(config)
@name = config.fetch("name")
@camelcase = @name.split("_").map(&:capitalize).join