Class: Tapioca::Compilers::Dsl::Base
- Inherits:
-
Object
- Object
- Tapioca::Compilers::Dsl::Base
- Extended by:
- T::Helpers, T::Sig
- Includes:
- Reflection
- Defined in:
- lib/tapioca/compilers/dsl/base.rb
Direct Known Subclasses
AASM, ActionControllerHelpers, ActionMailer, ActiveJob, ActiveModelAttributes, ActiveModelSecurePassword, ActiveRecordAssociations, ActiveRecordColumns, ActiveRecordEnum, ActiveRecordFixtures, ActiveRecordScope, ActiveRecordTypedStore, ActiveResource, ActiveStorage, ActiveSupportConcern, ActiveSupportCurrentAttributes, Config, FrozenRecord, IdentityCache, MixedInClassAttributes, Protobuf, SidekiqWorker, SmartProperties, StateMachines, UrlHelpers
Constant Summary
Constants included from Reflection
Reflection::ANCESTORS_METHOD, Reflection::CLASS_METHOD, Reflection::CONSTANTS_METHOD, Reflection::EQUAL_METHOD, Reflection::METHOD_METHOD, Reflection::NAME_METHOD, Reflection::OBJECT_ID_METHOD, Reflection::PRIVATE_INSTANCE_METHODS_METHOD, Reflection::PROTECTED_INSTANCE_METHODS_METHOD, Reflection::PUBLIC_INSTANCE_METHODS_METHOD, Reflection::SINGLETON_CLASS_METHOD, Reflection::SUPERCLASS_METHOD
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#processable_constants ⇒ Object
readonly
Returns the value of attribute processable_constants.
Instance Method Summary collapse
- #add_error(error) ⇒ Object
- #decorate(tree, constant) ⇒ Object
- #gather_constants ⇒ Object
- #handles?(constant) ⇒ Boolean
-
#initialize ⇒ Base
constructor
A new instance of Base.
Methods included from Reflection
#ancestors_of, #are_equal?, #class_of, #constants_of, #descendants_of, #inherited_ancestors_of, #method_of, #name_of, #name_of_type, #object_id_of, #private_instance_methods_of, #protected_instance_methods_of, #public_instance_methods_of, #qualified_name_of, #signature_of, #singleton_class_of, #superclass_of
Constructor Details
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
23 24 25 |
# File 'lib/tapioca/compilers/dsl/base.rb', line 23 def errors @errors end |
#processable_constants ⇒ Object (readonly)
Returns the value of attribute processable_constants.
20 21 22 |
# File 'lib/tapioca/compilers/dsl/base.rb', line 20 def processable_constants @processable_constants end |
Instance Method Details
#add_error(error) ⇒ Object
52 53 54 |
# File 'lib/tapioca/compilers/dsl/base.rb', line 52 def add_error(error) @errors << error end |
#decorate(tree, constant) ⇒ Object
45 |
# File 'lib/tapioca/compilers/dsl/base.rb', line 45 def decorate(tree, constant); end |
#gather_constants ⇒ Object
48 |
# File 'lib/tapioca/compilers/dsl/base.rb', line 48 def gather_constants; end |
#handles?(constant) ⇒ Boolean
32 33 34 |
# File 'lib/tapioca/compilers/dsl/base.rb', line 32 def handles?(constant) processable_constants.include?(constant) end |