Sha256: b50bce5b5cdbae8ee9ae97451a2032c623e36c43b0aff4f9128969412129b7f4

Contents?: true

Size: 934 Bytes

Versions: 7

Compression:

Stored size: 934 Bytes

Contents

# Generated from lib/rbs_activesupport/generator.rb with RBS::Inline

module RbsActivesupport
  class Generator
    # @rbs pathname: Pathname
    # @rbs rbs_builder: RBS::DefinitionBuilder
    def self.generate: (Pathname pathname, RBS::DefinitionBuilder rbs_builder) -> String?

    include AST

    attr_reader pathname: Pathname

    attr_reader declaration_builder: DeclarationBuilder

    # @rbs pathname: Pathname
    # @rbs rbs_builder: RBS::DefinitionBuilder
    def initialize: (Pathname pathname, RBS::DefinitionBuilder rbs_builder) -> void

    def generate: () -> String?

    private

    # @rbs rbs: String
    def format: (String rbs) -> String

    def parse_source_code: () -> Hash[RBS::Namespace, Array[Parser::MethodCall]]

    # @rbs namespace: RBS::Namespace
    def header: (RBS::Namespace namespace) -> String

    # @rbs namespace: RBS::Namespace
    def footer: (RBS::Namespace namespace) -> String
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rbs_activesupport-1.4.3 sig/rbs_activesupport/generator.rbs
rbs_activesupport-1.4.2 sig/rbs_activesupport/generator.rbs
rbs_activesupport-1.4.1 sig/rbs_activesupport/generator.rbs
rbs_activesupport-1.4.0 sig/rbs_activesupport/generator.rbs
rbs_activesupport-1.3.0 sig/rbs_activesupport/generator.rbs
rbs_activesupport-1.2.1 sig/rbs_activesupport/generator.rbs
rbs_activesupport-1.2.0 sig/rbs_activesupport/generator.rbs