Class: Tapioca::Compilers::Dsl::Base
- Inherits:
-
Object
- Object
- Tapioca::Compilers::Dsl::Base
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/tapioca/compilers/dsl/base.rb
Direct Known Subclasses
ActionControllerHelpers, ActionMailer, ActiveRecordAssociations, ActiveRecordColumns, ActiveRecordEnum, ActiveRecordScope, ActiveRecordTypedStore, ActiveResource, ActiveSupportCurrentAttributes, FrozenRecord, IdentityCache, Protobuf, SidekiqWorker, SmartProperties, StateMachines, UrlHelpers
Instance Attribute Summary collapse
-
#processable_constants ⇒ Object
readonly
Returns the value of attribute processable_constants.
Instance Method Summary collapse
- #decorate(root, constant) ⇒ Object
- #gather_constants ⇒ Object
- #handles?(constant) ⇒ Boolean
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of 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 (readonly)
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 |