Sha256: 2afeb00f905324dead3520e4f698b3cc65c046367fdabaa4b3ccd9d5c4bd6e49

Contents?: true

Size: 1.97 KB

Versions: 3

Compression:

Stored size: 1.97 KB

Contents

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

module RbsActivesupport
  class DeclarationBuilder
    type t = AttributeAccessor | ClassAttribute | Delegate | Include

    include AST

    attr_reader method_searcher: MethodSearcher

    # @rbs method_searcher: MethodSearcher
    def initialize: (MethodSearcher method_searcher) -> void

    # @rbs namespace: RBS::Namespace
    # @rbs method_calls: Array[Parser::MethodCall]
    # @rbs context: RBS::Namespace?
    def build: (RBS::Namespace namespace, Array[Parser::MethodCall] method_calls, ?RBS::Namespace? context) -> [ Array[String], Array[String] ]

    private

    # @rbs namespace: RBS::Namespace
    # @rbs method_calls: Array[Parser::MethodCall]
    # @rbs context: RBS::Namespace?
    def build_method_calls: (RBS::Namespace namespace, Array[Parser::MethodCall] method_calls, RBS::Namespace? context) -> Array[t]

    # @rbs method_call: Parser::MethodCall
    def build_attribute_accessor: (Parser::MethodCall method_call) -> Array[AttributeAccessor]

    # @rbs method_call: Parser::MethodCall
    def build_class_attribute: (Parser::MethodCall method_call) -> Array[ClassAttribute]

    # @rbs namespace: RBS::Namespace
    # @rbs method_call: Parser::MethodCall
    def build_delegate: (RBS::Namespace namespace, Parser::MethodCall method_call) -> Array[Delegate]

    # @rbs namespace: RBS::Namespace
    # @rbs method_call: Parser::MethodCall
    # @rbs context: RBS::Namespace?
    def build_include: (RBS::Namespace namespace, Parser::MethodCall method_call, RBS::Namespace? context) -> Array[t]

    # @rbs decl: t
    def render: (t decl) -> String

    # @rbs decl: AttributeAccessor
    def render_attribute_accessor: (AttributeAccessor decl) -> String

    # @rbs decl: ClassAttribute
    def render_class_attribute: (ClassAttribute decl) -> String

    # @rbs decl: Delegate
    def render_delegate: (Delegate decl) -> String

    # @rbs decl: Include
    def render_include: (Include decl) -> String
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rbs_activesupport-1.4.2 sig/rbs_activesupport/declaration_builder.rbs
rbs_activesupport-1.4.1 sig/rbs_activesupport/declaration_builder.rbs
rbs_activesupport-1.4.0 sig/rbs_activesupport/declaration_builder.rbs