Class: ROM::Inferrer Private
- Inherits:
-
Object
- Object
- ROM::Inferrer
- Includes:
- Dry::Core::Memoizable
- Defined in:
- lib/rom/inferrer.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #cache ⇒ Object readonly private
- #config ⇒ Object readonly private
Instance Method Summary collapse
- #call(ast, type, **opts) ⇒ Object private
-
#initialize ⇒ Inferrer
constructor
private
A new instance of Inferrer.
Constructor Details
Instance Attribute Details
#cache ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/rom/inferrer.rb', line 17 def cache @cache end |
#config ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/rom/inferrer.rb', line 17 def config @config end |
Instance Method Details
#call(ast, type, **opts) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rom/inferrer.rb', line 25 def call(ast, type, **opts) compiler(type, **opts).then do |compiler| case type when :mappers compiler.(ast) when :commands compiler.(*ast) # TODO: unify this end end end |