Sha256: 43b60499045af8046f66de31fe374b045444ac8dc2c61f021b6f76d42b6847d3
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
# typed: true module Parlour class RbiGenerator extend T::Sig sig { params(break_params: Integer, tab_size: Integer).void } def initialize(break_params: 4, tab_size: 2) @options = Options.new(break_params: break_params, tab_size: tab_size) @root = Namespace.new end sig { returns(Options) } attr_reader :options sig { returns(Namespace) } attr_reader :root sig { returns(String) } def rbi root.generate_rbi(0, options).join("\n") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parlour-0.1.1 | lib/parlour/rbi_generator.rb |