diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-08-30 16:12:50 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-08-30 20:41:40 +0000 |
commit | c0cb9efb16993b0898979844c54207f979b2bd44 (patch) | |
tree | 7f66c2479193dac6a8e4733c069d8dcedec9d191 /yarp | |
parent | ff024150e766a0db5ee9517ab1b0e7c84beca14b (diff) | |
download | ruby-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.yml | 4 | ||||
-rwxr-xr-x | yarp/templates/template.rb | 2 |
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 |