class Parlour::RbsGenerator
The RBS generator.
Attributes
root[R]
The root {Namespace} of this generator. @return [Namespace]
Public Class Methods
new(**hash)
click to toggle source
Calls superclass method
Parlour::Generator::new
# File lib/parlour/rbs_generator.rb, line 5 def initialize(**hash) super @root = RbsGenerator::Namespace.new(self) end
Public Instance Methods
rbs()
click to toggle source
Returns the complete contents of the generated RBS file as a string.
@return [String] The generated RBS file
# File lib/parlour/rbs_generator.rb, line 19 def rbs root.generate_rbs(0, options).join("\n") end