parlour 4.0.0 → 5.0.0.beta.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/bug-report.md +0 -0
  3. data/.github/ISSUE_TEMPLATE/feature-request.md +0 -0
  4. data/.gitignore +1 -1
  5. data/.parlour +0 -0
  6. data/.rspec +0 -0
  7. data/.travis.yml +0 -0
  8. data/CHANGELOG.md +52 -0
  9. data/CODE_OF_CONDUCT.md +0 -0
  10. data/Gemfile +0 -0
  11. data/LICENSE.txt +0 -0
  12. data/README.md +208 -20
  13. data/Rakefile +0 -0
  14. data/exe/parlour +45 -6
  15. data/lib/parlour.rb +27 -1
  16. data/lib/parlour/conflict_resolver.rb +31 -9
  17. data/lib/parlour/conversion/converter.rb +34 -0
  18. data/lib/parlour/conversion/rbi_to_rbs.rb +229 -0
  19. data/lib/parlour/debugging.rb +0 -0
  20. data/lib/parlour/detached_rbi_generator.rb +0 -0
  21. data/lib/parlour/detached_rbs_generator.rb +25 -0
  22. data/lib/parlour/generator.rb +34 -0
  23. data/lib/parlour/kernel_hack.rb +0 -0
  24. data/lib/parlour/options.rb +71 -0
  25. data/lib/parlour/parse_error.rb +0 -0
  26. data/lib/parlour/plugin.rb +0 -0
  27. data/lib/parlour/rbi_generator.rb +24 -37
  28. data/lib/parlour/rbi_generator/arbitrary.rb +5 -2
  29. data/lib/parlour/rbi_generator/attribute.rb +14 -5
  30. data/lib/parlour/rbi_generator/class_namespace.rb +8 -3
  31. data/lib/parlour/rbi_generator/constant.rb +17 -6
  32. data/lib/parlour/rbi_generator/enum_class_namespace.rb +8 -3
  33. data/lib/parlour/rbi_generator/extend.rb +5 -2
  34. data/lib/parlour/rbi_generator/include.rb +5 -2
  35. data/lib/parlour/rbi_generator/method.rb +15 -10
  36. data/lib/parlour/rbi_generator/module_namespace.rb +7 -2
  37. data/lib/parlour/rbi_generator/namespace.rb +40 -13
  38. data/lib/parlour/rbi_generator/parameter.rb +11 -5
  39. data/lib/parlour/rbi_generator/rbi_object.rb +19 -78
  40. data/lib/parlour/rbi_generator/struct_class_namespace.rb +9 -2
  41. data/lib/parlour/rbi_generator/struct_prop.rb +12 -9
  42. data/lib/parlour/rbi_generator/type_alias.rb +101 -0
  43. data/lib/parlour/rbs_generator.rb +24 -0
  44. data/lib/parlour/rbs_generator/arbitrary.rb +92 -0
  45. data/lib/parlour/rbs_generator/attribute.rb +82 -0
  46. data/lib/parlour/rbs_generator/block.rb +49 -0
  47. data/lib/parlour/rbs_generator/class_namespace.rb +106 -0
  48. data/lib/parlour/rbs_generator/constant.rb +95 -0
  49. data/lib/parlour/rbs_generator/extend.rb +92 -0
  50. data/lib/parlour/rbs_generator/include.rb +92 -0
  51. data/lib/parlour/rbs_generator/interface_namespace.rb +34 -0
  52. data/lib/parlour/rbs_generator/method.rb +146 -0
  53. data/lib/parlour/rbs_generator/method_signature.rb +104 -0
  54. data/lib/parlour/rbs_generator/module_namespace.rb +35 -0
  55. data/lib/parlour/rbs_generator/namespace.rb +627 -0
  56. data/lib/parlour/rbs_generator/parameter.rb +146 -0
  57. data/lib/parlour/rbs_generator/rbs_object.rb +78 -0
  58. data/lib/parlour/rbs_generator/type_alias.rb +96 -0
  59. data/lib/parlour/type_loader.rb +0 -0
  60. data/lib/parlour/type_parser.rb +174 -5
  61. data/lib/parlour/typed_object.rb +87 -0
  62. data/lib/parlour/types.rb +539 -0
  63. data/lib/parlour/version.rb +1 -1
  64. data/parlour.gemspec +1 -1
  65. data/plugin_examples/foobar_plugin.rb +0 -0
  66. data/rbi/parlour.rbi +1404 -441
  67. metadata +33 -10
  68. data/lib/parlour/rbi_generator/options.rb +0 -74
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f37a6dd2dffd0b59594b4c0ed664cdd27c4ea5bb02d1ca0f944ddff2d6ccda83
4
- data.tar.gz: 38b776b79c349f48e672fbb81534d4ab1b751af13ecdab9e60d3f08562f03332
3
+ metadata.gz: 28a746eeb5c6322d0dfbfc53336bde66a65a35462f8e7685098aadd8720d3ade
4
+ data.tar.gz: 5cd5e9fe8cd248e1b7685134b3116f04c28e481d30ed6ac01b77b6f82aa7236b
5
5
  SHA512:
6
- metadata.gz: 8da56118b8e784707a054ae7dbdddda63dade826ec19d87a06f468229e8e53ef1669f7b05c4c5be6cc9e75377846e729748b0f31d3400768041079050fb72776
7
- data.tar.gz: c7a39a7a91aee7298fbdf3e5d7ebdebc278001317cb365bc7f3970d62fa49c2d9e3f5d7e1eb4c70a386ef0964f14bde2647871ab8c0b6a3a5adad8c774bc08f5
6
+ metadata.gz: 51d1cdde17b3d84ae927343e7627efc2ef832440907b8f3ae40ec3cf20edcd20a8f7f76f3991933251a7542ccc7b6ac1269a98a268603e34eaaf043322e05625
7
+ data.tar.gz: d84ae4f6260e82de62dafdc67a7715c9cd74f01a68bbce8f5e89d0aa1f00509bd4a5230ec0fa7c850898f57936e29aee07c8f607935dbc1c784f4212ff709246
File without changes
File without changes
data/.gitignore CHANGED
@@ -8,7 +8,7 @@
8
8
  /tmp/
9
9
  Gemfile.lock
10
10
  /.vscode
11
- /sorbte/rbi/hidden-definitions/errors.txt
11
+ /sorbet/rbi/hidden-definitions/errors.txt
12
12
 
13
13
  # rspec failure tracking
14
14
  .rspec_status
data/.parlour CHANGED
File without changes
data/.rspec CHANGED
File without changes
File without changes
@@ -3,6 +3,58 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
5
5
 
6
+ ## [5.0.0.beta.4] - 2020-09-22
7
+ ### Added
8
+ - Added support for parsing type aliases from RBI
9
+ - Added conversion from RBI to RBS type aliases
10
+
11
+ ## [5.0.0.beta.3] - 2020-09-15
12
+ ### Changed
13
+ - Changed the RBS keyword warning to come from "RBS generation" rather than
14
+ "Type generalization"
15
+ - Added many more of RBS' keywords which are detected and prefixed with an
16
+ underscore to avoid syntax errors
17
+
18
+ ## [5.0.0.beta.2] - 2020-09-14
19
+ ### Added
20
+ - Added `Types::Type#describe` for simple text descriptions of types
21
+ - Added `Types::Self` for RBI's `T.self_type` or RBS' `self`
22
+
23
+ ### Fixed
24
+ - Fixed `RbiGenerator::Namespace#create_method`'s `returns:` kwarg only
25
+ accepting String types
26
+ - Fixed lack of spacing between argument lists and blocks in RBS
27
+ - Fixed RBS attributes not having comments
28
+
29
+ ## [5.0.0.beta.1] - 2020-09-13
30
+ ### Added
31
+ - Added RBS generation support! This includes:
32
+ - The new `RbsGenerator` class
33
+ - `RbsObject` and a set of subclasses representing different RBS components
34
+ - Added the `Types` module, which is used to describe types agnostic of the
35
+ underlying type system
36
+ - Added `RbiGenerator::Namespace#generalize_from_rbi!` to convert RBI string
37
+ types into `Types` types
38
+ - **Specifying types as strings is still currently supported, but may be
39
+ phased out in future, and should be avoided in new projects**.
40
+ - Added conversion from RBI to RBS type trees
41
+ - Added a couple of classes to deduplicate functionality between type systems:
42
+ - `TypedObject`, which `RbiObject` and `RbsObject` both inherit from
43
+ - `Generator`, which `RbiGenerator` and `RbsGenerator` both inherit from
44
+ - Added RBI type aliases
45
+
46
+ ### Changed
47
+ - `Parlour::RbiGenerator::Options` is now `Parlour::Options`. An alias exists
48
+ for now, but **`Parlour::RbiGenerator::Options` is deprecated** and could be
49
+ removed in future versions.
50
+ - Updated README and gem metadata to refer to Parlour as a type information
51
+ generator, rather than just an RBI generator
52
+
53
+ ## [4.0.1] - 2020-08-05
54
+ ### Fixed
55
+ - Fixed duplicate includes and extends.
56
+ - Fixed the block return type for `#resolve_conflicts` not being nilable.
57
+
6
58
  ## [4.0.0] - 2020-05-23
7
59
  ### Added
8
60
  - Parlour now defaults to loading the current project when running its command
File without changes
data/Gemfile CHANGED
File without changes
File without changes
data/README.md CHANGED
@@ -3,42 +3,77 @@
3
3
  [![Build Status](https://travis-ci.org/AaronC81/parlour.svg?branch=master)](https://travis-ci.org/AaronC81/parlour)
4
4
  ![Gem](https://img.shields.io/gem/v/parlour.svg)
5
5
 
6
- Parlour is an RBI generator, merger and parser for Sorbet. It consists of three
7
- key parts:
6
+ Parlour is a Ruby type information generator, merger and parser, supporting both
7
+ **Sorbet RBI files and Ruby 3/Steep RBS files**. It consists of three key parts:
8
8
 
9
- - The generator, which outputs beautifully formatted RBI files, created using
10
- an intuitive DSL.
9
+ - The generator, which outputs beautifully formatted RBI/RBS files, created
10
+ using an intuitive DSL.
11
11
 
12
12
  - The plugin/build system, which allows multiple Parlour plugins to generate
13
13
  RBIs for the same codebase. These are combined automatically as much as
14
14
  possible, but any other conflicts can be resolved manually through prompts.
15
15
 
16
- - The parser, which can read an RBI and convert it back into a tree of
17
- generator objects.
16
+ - The parser (currently RBI-only), which can read an RBI and convert it back
17
+ into a tree of generator objects.
18
18
 
19
19
  ## Why should I use this?
20
20
 
21
- - Parlour enables **much easier creation of RBI generators**, as formatting
22
- is all handled for you, and you don't need to write your own CLI.
21
+ - Parlour enables **much easier creation of RBI/RBS generators**, as
22
+ formatting is all handled for you, and you don't need to write your own CLI.
23
23
 
24
24
  - You can **use many plugins together seamlessly**, running them all with a
25
25
  single command and consolidating all of their definitions into a single
26
- RBI output file.
26
+ output file.
27
27
 
28
28
  - You can **effortlessly build tools which need to access types within an RBI**;
29
29
  no need to write your own parser!
30
30
 
31
- - You can **generate RBI to ship with your gem** for consuming projects to use
32
- ([see "RBIs within gems" in Sorbet's docs](https://sorbet.org/docs/rbi#rbis-within-gems)).
31
+ - You can **generate RBI/RBS to ship with your gem** for consuming projects to
32
+ use ([see "RBIs within gems" in Sorbet's
33
+ docs](https://sorbet.org/docs/rbi#rbis-within-gems)).
33
34
 
34
35
  Please [**read the wiki**](https://github.com/AaronC81/parlour/wiki) to get
35
36
  started!
36
37
 
37
- ## Creating RBIs
38
+ ## Feature Support
38
39
 
39
- ### Using just the generator
40
+ | Feature | RBI | RBS |
41
+ |---------|-----|-----|
42
+ | **GENERATION** | | |
43
+ | Classes | ✅ | ⚠️ (missing `extension`) |
44
+ | Modules | ✅ | ⚠️ (missing `extension`) |
45
+ | Interfaces | ✅ | ✅ |
46
+ | Attributes | ✅ | ✅ |
47
+ | Methods | ✅ | ✅ |
48
+ | Overloaded methods | ❌* | ✅ |
49
+ | Structs | ✅ | ✅† |
50
+ | Enums | ✅ | ✅† |
51
+ | Generation with plugins | ✅ | ❌ |
52
+ | **MANIPULATION** | | |
53
+ | Parsing | ✅ | ❌ |
54
+ | Merging | ✅ | ❌ |
40
55
 
41
- Here's a quick example of how you can generate an RBI:
56
+ - - Well supported
57
+ - ⚠️ - Some missing features
58
+ - ❌ - Not currently supported
59
+
60
+ - \* Only supported in stdlib types anyway
61
+ - † Not natively supported; available as a one-way conversion from RBI
62
+
63
+ ## Creating Type Information
64
+
65
+ Each file format has its own type information generator class, so there are two
66
+ different generators you can use: `RbiGenerator` and `RbsGenerator`. Both
67
+ generators are similar to use, however they provide different object types and
68
+ parameters to match the functionality of their underlying type systems.
69
+
70
+ You can also convert your type information between formats; see
71
+ [converting between formats](#converting-between-formats).
72
+
73
+ ### Using Just the Generator
74
+
75
+ Here's a quick example of how you can generate some type information. Here
76
+ we'll generate an RBI using the `RbiGenerator` classes:
42
77
 
43
78
  ```ruby
44
79
  require 'parlour'
@@ -72,11 +107,50 @@ module A
72
107
  end
73
108
  ```
74
109
 
75
- ### Writing a plugin
110
+ Using the RBS generator looks similar, but has an intermediary
111
+ `MethodSignature` class to support RBS' method overloading:
112
+
113
+ ```ruby
114
+ require 'parlour'
115
+
116
+ generator = Parlour::RbsGenerator.new
117
+ generator.root.create_module('A') do |a|
118
+ a.create_class('Foo') do |foo|
119
+ foo.create_method('add_two_integers', [
120
+ Parlour::RbsGenerator::MethodSignature.new(
121
+ [
122
+ Parlour::RbsGenerator::Parameter.new('a', type: 'Integer'),
123
+ Parlour::RbsGenerator::Parameter.new('b', type: 'Integer')
124
+ ],
125
+ 'Integer'
126
+ )
127
+ ])
128
+ end
129
+
130
+ a.create_class('Bar', superclass: 'Foo')
131
+ end
132
+
133
+ generator.rbs # => Our RBS as a string
134
+ ```
135
+
136
+ This generates an equivalent RBS file:
137
+
138
+ ```ruby
139
+ module A
140
+ class Foo
141
+ def add_two_integers: (Integer a, Integer b) -> Integer
142
+ end
143
+
144
+ class Bar < Foo
145
+ end
146
+ end
147
+ ```
148
+
149
+ ### Writing a Plugin
76
150
  Plugins are better than using the generator alone, as your plugin can be
77
- combined with others to produce larger RBIs without conflicts.
151
+ combined with others to produce larger files without conflicts.
78
152
 
79
- We could write the above example as a plugin like this:
153
+ We could write the above example as an RBI plugin like this:
80
154
 
81
155
  ```ruby
82
156
  require 'parlour'
@@ -107,7 +181,8 @@ called `plugin.rb`, then using this `.parlour` file and then running `parlour`
107
181
  would save the RBI into `output.rbi`:
108
182
 
109
183
  ```yaml
110
- output_file: output.rbi
184
+ output_file:
185
+ rbi: output.rbi
111
186
 
112
187
  relative_requires:
113
188
  - plugin.rb
@@ -131,7 +206,8 @@ You can also use plugins from gems. If that plugin was published as a gem called
131
206
  `parlour-gem`:
132
207
 
133
208
  ```yaml
134
- output_file: output.rbi
209
+ output_file:
210
+ rbi: output.rbi
135
211
 
136
212
  requires:
137
213
  - parlour-gem
@@ -143,7 +219,8 @@ plugins:
143
219
  The real power of this is the ability to use many plugins at once:
144
220
 
145
221
  ```yaml
146
- output_file: output.rbi
222
+ output_file:
223
+ rbi: output.rbi
147
224
 
148
225
  requires:
149
226
  - gem1
@@ -156,6 +233,92 @@ plugins:
156
233
  Gem3::Plugin: {}
157
234
  ```
158
235
 
236
+ Currently, only plugins which generate RBI files are supported. However, you can
237
+ use [Parlour's type conversion](#converting-between-formats) to convert the RBI
238
+ types into RBS types:
239
+
240
+ ```yaml
241
+ output_file:
242
+ rbi: output.rbi
243
+ rbs: output.rbs
244
+ ```
245
+
246
+ ## Using Types
247
+
248
+ The most important part of your type information is the types themselves, which
249
+ you'll be specifying for method parameters, method returns, and attributes.
250
+ These include simple types like `String`, up to more complex types like
251
+ "an array of elements which are one of `Integer`, `String`, or nil".
252
+
253
+ There are two ways to represent these types in Parlour:
254
+
255
+ 1. As **generalized types**; that is, instances of classes in the
256
+ `Parlour::Types` namespace. This is the **recommended way**, as it is
257
+ format-agnostic and can be compiled to RBI or RBS. For more information
258
+ about these types and how to use them, see
259
+ [this wiki page](https://github.com/AaronC81/parlour/wiki/The-Types-namespace).
260
+
261
+ 2. As **strings of code** written in the format that your type system expects.
262
+ The given strings are directly inserted into the final type file. These types
263
+ are **not portable across formats**, and as such are
264
+ **not recommended and may be phased out** in the future.
265
+
266
+ Currently most type values within Parlour are typed as `Types::TypeLike`,
267
+ which accepts a `String` or a `Types::Type` subclass.
268
+
269
+ ```ruby
270
+ include Parlour
271
+
272
+ # Two ways to express an attribute called 'example', which is:
273
+ # an array of nilable strings or integers
274
+
275
+ # 1. With generalised types - type is agnostic to the underlying type system
276
+ root.create_attr_accessor('example', type:
277
+ Types::Array.new(
278
+ Types::Nilable.new(
279
+ Types::Union.new(['String', 'Integer'])
280
+ )
281
+ )
282
+ )
283
+
284
+ # 2. With string types - format depends on type system
285
+ # If using RBI...
286
+ root.create_attr_accessor('example', type:
287
+ 'T::Array[T.nilable(T.any(String, Integer))]'
288
+ )
289
+ # If using RBS...
290
+ root.create_attr_accessor('example', type:
291
+ 'Array[?(String | Integer)]'
292
+ )
293
+ ```
294
+
295
+ ### Generalizing String Types
296
+
297
+ If you have loaded an RBI project or created a structure of nodes on an
298
+ `RbiGenerator`, you can use `#generalize_from_rbi!` on your root namespace
299
+ to attempt to permanently convert the RBI string types into generalized types:
300
+
301
+ ```ruby
302
+ # Build up an RBI tree with string types
303
+ root.create_attr_accessor('example', type:
304
+ 'T::Array[T.nilable(T.any(String, Integer))]'
305
+ )
306
+
307
+ # Generalize it
308
+ root.generalize_from_rbi!
309
+
310
+ # Take a look at our generalized type!
311
+ pp root.children.first.type
312
+ # => #<Parlour::Types::Array:0x0000557cdcebfdf8
313
+ # @element=
314
+ # #<Parlour::Types::Nilable:0x0000557cdcef8c70
315
+ # @type=
316
+ # #<Parlour::Types::Union:0x0000557cdcea0a70
317
+ # @types=
318
+ # [#<Parlour::Types::Raw:0x0000557cdcea1920 @str="String">,
319
+ # #<Parlour::Types::Raw:0x0000557cdcea0ae8 @str="Integer">]>>>
320
+ ```
321
+
159
322
  ## Parsing RBIs
160
323
 
161
324
  You can either parse individual RBI files, or point Parlour to the root of a
@@ -200,6 +363,31 @@ file as an example).
200
363
  To disable the parsing step entire and just run plugins you can set `parser: false`
201
364
  in your `.parlour` file.
202
365
 
366
+ ## Converting Between Formats
367
+
368
+ _For more information, see the [wiki page](https://github.com/AaronC81/parlour/wiki/Converting-between-RBI-and-RBS)._
369
+
370
+ Currently, only RBI to RBS conversion is supported, and if you've used string
371
+ types (or are using a freshly-loaded project) you
372
+ **must [generalize them](#generalizing-string-types) first**.
373
+
374
+ Then, all you need to do is create an `RbsGenerator` (which the converter will
375
+ add your converted types to) and a `Conversion::RbiToRbs` instance (which
376
+ performs the conversion). Then you can convert each object at your
377
+ `RbiGenerator`'s root namespace:
378
+
379
+ ```ruby
380
+ rbi_gen = Parlour::RbiGenerator.new
381
+ # Then, after populating the RbiGenerator with types...
382
+
383
+ # Create an RbsGenerator and a converter
384
+ rbs_gen = Parlour::RbsGenerator.new
385
+ converter = Parlour::Conversion::RbiToRbs.new(rbs_gen)
386
+
387
+ # Convert each item at the root of the RbiGenerator and it to the root of the RbsGenerator
388
+ converter.convert_all(rbi_gen.root, rbs_gen.root)
389
+ ```
390
+
203
391
  ## Parlour Plugins
204
392
 
205
393
  _Have you written an awesome Parlour plugin? Please submit a PR to add it to this list!_
data/Rakefile CHANGED
File without changes
@@ -25,8 +25,33 @@ command :run do |c|
25
25
  configuration = {}
26
26
  end
27
27
 
28
- # Output default
29
- configuration[:output_file] ||= "rbi/#{File.basename(working_dir)}.rbi"
28
+ # Output file
29
+ if configuration[:output_file].is_a?(String)
30
+ assumed_format = \
31
+ if configuration[:output_file].end_with?('.rbi')
32
+ :rbi
33
+ elsif configuration[:output_file].end_with?('.rbs')
34
+ :rbs
35
+ else
36
+ raise 'invalid output file; please specify an RBI or RBS file'
37
+ end
38
+
39
+ unless $VERBOSE.nil?
40
+ print Rainbow("Parlour warning: ").yellow.dark.bold
41
+ print Rainbow("CLI: ").magenta.bright.bold
42
+ puts "Specifying output_file in .parlour as a string is deprecated."
43
+ puts "For now, generating an #{assumed_format.to_s.upcase} file based on the file extension."
44
+ puts "Please update your .parlour to use the new form:"
45
+ puts " output_file:"
46
+ puts " #{assumed_format}: #{configuration[:output_file]}"
47
+ end
48
+ configuration[:output_file] = {
49
+ assumed_format => configuration[:output_file]
50
+ }
51
+ end
52
+ configuration[:output_file] ||= {
53
+ rbi: "rbi/#{File.basename(working_dir)}.rbi"
54
+ }
30
55
 
31
56
  # Style defaults
32
57
  configuration[:style] ||= {}
@@ -45,7 +70,7 @@ command :run do |c|
45
70
  configuration[:parser][:excluded_paths] ||= ['sorbet', 'spec']
46
71
 
47
72
  # Defaults can be overridden but we always want to exclude the output file
48
- configuration[:parser][:excluded_paths] << configuration[:output_file]
73
+ configuration[:parser][:excluded_paths] << configuration[:output_file][:rbi]
49
74
  end
50
75
 
51
76
  # Included/Excluded module defaults
@@ -141,9 +166,23 @@ command :run do |c|
141
166
  end
142
167
  end
143
168
 
144
- # Write the final RBI
145
- FileUtils.mkdir_p(File.dirname(configuration[:output_file]))
146
- File.write(configuration[:output_file], gen.rbi(strictness))
169
+ # Write the final files
170
+ if configuration[:output_file][:rbi]
171
+ FileUtils.mkdir_p(File.dirname(configuration[:output_file][:rbi]))
172
+ File.write(configuration[:output_file][:rbi], gen.rbi(strictness))
173
+ end
174
+ if configuration[:output_file][:rbs]
175
+ gen.root.generalize_from_rbi!
176
+ rbs_gen = Parlour::RbsGenerator.new
177
+
178
+ converter = Parlour::Conversion::RbiToRbs.new(rbs_gen)
179
+ gen.root.children.each do |child|
180
+ converter.convert_object(child, rbs_gen.root)
181
+ end
182
+
183
+ FileUtils.mkdir_p(File.dirname(configuration[:output_file][:rbs]))
184
+ File.write(configuration[:output_file][:rbs], rbs_gen.rbs)
185
+ end
147
186
  end
148
187
  end
149
188