Class: Tapioca::Compilers::Dsl::Base
- Inherits:
-
Object
- Object
- Tapioca::Compilers::Dsl::Base
show all
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/tapioca/compilers/dsl/base.rb
Direct Known Subclasses
ActionControllerHelpers, ActionMailer, ActiveRecordAssociations, ActiveRecordColumns, ActiveRecordEnum, ActiveRecordIdentityCache, ActiveRecordScope, ActiveRecordTypedStore, ActiveResource, ActiveSupportCurrentAttributes, FrozenRecord, Protobuf, SmartProperties, StateMachines, UrlHelpers
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize ⇒ Base
19
20
21
|
# File 'lib/tapioca/compilers/dsl/base.rb', line 19
def initialize
@processable_constants = T.let(Set.new(gather_constants), T::Set[Module])
end
|
Instance Attribute Details
#processable_constants ⇒ Object
Returns the value of attribute processable_constants.
16
17
18
|
# File 'lib/tapioca/compilers/dsl/base.rb', line 16
def processable_constants
@processable_constants
end
|
Instance Method Details
#decorate(root, constant) ⇒ Object
37
|
# File 'lib/tapioca/compilers/dsl/base.rb', line 37
def decorate(root, constant); end
|
#gather_constants ⇒ Object
40
|
# File 'lib/tapioca/compilers/dsl/base.rb', line 40
def gather_constants; end
|
#handles?(constant) ⇒ Boolean
24
25
26
|
# File 'lib/tapioca/compilers/dsl/base.rb', line 24
def handles?(constant)
processable_constants.include?(constant)
end
|