Class: Solargraph::Convention::ActiveSupportConcern

Inherits:
Base
  • Object
show all
Includes:
Logging
Defined in:
lib/solargraph/convention/active_support_concern.rb

Overview

ActiveSupport::Concern is syntactic sugar for a common pattern to include class methods while mixing-in a Module See api.rubyonrails.org/classes/ActiveSupport/Concern.html

Defined Under Namespace

Classes: ObjectProcessor

Constant Summary

Constants included from Logging

Logging::DEFAULT_LOG_LEVEL, Logging::LOG_LEVELS

Constants inherited from Base

Base::EMPTY_ENVIRON

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logging

logger

Methods inherited from Base

#local

Instance Attribute Details

#pinsArray<Pin::Base> (readonly)

Returns:



12
13
14
# File 'lib/solargraph/convention/active_support_concern.rb', line 12

def pins
  @pins
end

Instance Method Details

#global(_doc_map) ⇒ Object

yard-activesupport-concern pulls methods inside ‘class_methods’ blocks into main class visible from YARD

Parameters:



30
31
32
# File 'lib/solargraph/convention/active_support_concern.rb', line 30

def global _doc_map
  Environ.new(yard_plugins: ['activesupport-concern'])
end

#object(api_map, rooted_tag, scope, visibility, deep, skip, _no_core) ⇒ Object

Parameters:

  • api_map (ApiMap)
  • rooted_tag (String)
  • scope (Symbol)

    :class or :instance

  • visibility (Array<Symbol>)

    :public, :protected, and/or :private

  • deep (Boolean)

    whether to include methods from included modules

  • skip (Set<String>)
  • _no_core (Boolean)

    n whether to skip core methods



21
22
23
24
# File 'lib/solargraph/convention/active_support_concern.rb', line 21

def object api_map, rooted_tag, scope, visibility, deep, skip, _no_core
  moo = ObjectProcessor.new(api_map, rooted_tag, scope, visibility, deep, skip)
  moo.environ
end