Class: Tapioca::Dsl::Compiler
- Inherits:
-
Object
- Object
- Tapioca::Dsl::Compiler
- Extended by:
- T::Generic, T::Helpers, T::Sig, Runtime::Reflection
- Includes:
- Helpers::ParamHelper, Runtime::Reflection
- Defined in:
- lib/tapioca/dsl/compiler.rb
Direct Known Subclasses
Tapioca::Dsl::Compilers::AASM, Tapioca::Dsl::Compilers::ActionControllerHelpers, Tapioca::Dsl::Compilers::ActionMailer, Tapioca::Dsl::Compilers::ActiveJob, Tapioca::Dsl::Compilers::ActiveModelAttributes, Tapioca::Dsl::Compilers::ActiveModelSecurePassword, Tapioca::Dsl::Compilers::ActiveRecordAssociations, Tapioca::Dsl::Compilers::ActiveRecordColumns, Tapioca::Dsl::Compilers::ActiveRecordEnum, Tapioca::Dsl::Compilers::ActiveRecordFixtures, Tapioca::Dsl::Compilers::ActiveRecordRelations, Tapioca::Dsl::Compilers::ActiveRecordScope, Tapioca::Dsl::Compilers::ActiveRecordTypedStore, Tapioca::Dsl::Compilers::ActiveResource, Tapioca::Dsl::Compilers::ActiveStorage, Tapioca::Dsl::Compilers::ActiveSupportConcern, Tapioca::Dsl::Compilers::ActiveSupportCurrentAttributes, Tapioca::Dsl::Compilers::Config, Tapioca::Dsl::Compilers::FrozenRecord, Tapioca::Dsl::Compilers::IdentityCache, Tapioca::Dsl::Compilers::MixedInClassAttributes, Tapioca::Dsl::Compilers::Protobuf, Tapioca::Dsl::Compilers::RailsGenerators, Tapioca::Dsl::Compilers::SidekiqWorker, Tapioca::Dsl::Compilers::SmartProperties, Tapioca::Dsl::Compilers::StateMachines, Tapioca::Dsl::Compilers::UrlHelpers
Constant Summary collapse
- ConstantType =
type_member(upper: Module)
Constants included from Runtime::Reflection
Runtime::Reflection::ANCESTORS_METHOD, Runtime::Reflection::CLASS_METHOD, Runtime::Reflection::CONSTANTS_METHOD, Runtime::Reflection::EQUAL_METHOD, Runtime::Reflection::METHOD_METHOD, Runtime::Reflection::NAME_METHOD, Runtime::Reflection::OBJECT_ID_METHOD, Runtime::Reflection::PRIVATE_INSTANCE_METHODS_METHOD, Runtime::Reflection::PROTECTED_INSTANCE_METHODS_METHOD, Runtime::Reflection::PUBLIC_INSTANCE_METHODS_METHOD, Runtime::Reflection::SINGLETON_CLASS_METHOD, Runtime::Reflection::SUPERCLASS_METHOD
Instance Attribute Summary collapse
-
#constant ⇒ Object
readonly
Returns the value of attribute constant.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Class Method Summary collapse
Instance Method Summary collapse
- #add_error(error) ⇒ Object
- #compiler_enabled?(compiler_name) ⇒ Boolean
- #decorate ⇒ Object
-
#initialize(pipeline, root, constant) ⇒ Compiler
constructor
A new instance of Compiler.
Methods included from T::Generic::TypeStoragePatch
#[], #type_member, #type_template
Methods included from Runtime::Reflection
ancestors_of, are_equal?, class_of, constantize, 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
Methods included from Helpers::ParamHelper
#create_block_param, #create_kw_opt_param, #create_kw_param, #create_kw_rest_param, #create_opt_param, #create_param, #create_rest_param, #create_typed_param
Constructor Details
Instance Attribute Details
#constant ⇒ Object (readonly)
Returns the value of attribute constant.
25 26 27 |
# File 'lib/tapioca/dsl/compiler.rb', line 25 def constant @constant end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
28 29 30 |
# File 'lib/tapioca/dsl/compiler.rb', line 28 def root @root end |
Class Method Details
.gather_constants ⇒ Object
52 |
# File 'lib/tapioca/dsl/compiler.rb', line 52 def self.gather_constants; end |
.handles?(constant) ⇒ Boolean
39 40 41 |
# File 'lib/tapioca/dsl/compiler.rb', line 39 def self.handles?(constant) processable_constants.include?(constant) end |
Instance Method Details
#add_error(error) ⇒ Object
65 66 67 |
# File 'lib/tapioca/dsl/compiler.rb', line 65 def add_error(error) @pipeline.add_error(error) end |
#compiler_enabled?(compiler_name) ⇒ Boolean
44 45 46 |
# File 'lib/tapioca/dsl/compiler.rb', line 44 def compiler_enabled?(compiler_name) @pipeline.compiler_enabled?(compiler_name) end |
#decorate ⇒ Object
49 |
# File 'lib/tapioca/dsl/compiler.rb', line 49 def decorate; end |