Class: ROM::Repository::MapperBuilder Private
- Inherits:
-
Object
- Object
- ROM::Repository::MapperBuilder
- Extended by:
- Dry::Core::Cache
- Defined in:
- lib/rom/repository/mapper_builder.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
- #header_builder ⇒ Object readonly private
Instance Method Summary collapse
- #call(ast) ⇒ Object (also: #[]) private
-
#initialize ⇒ MapperBuilder
constructor
private
A new instance of MapperBuilder.
Constructor Details
#initialize ⇒ MapperBuilder
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.
Returns a new instance of MapperBuilder.
13 14 15 |
# File 'lib/rom/repository/mapper_builder.rb', line 13 def initialize @header_builder = HeaderBuilder.new end |
Instance Attribute Details
#header_builder ⇒ 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.
11 12 13 |
# File 'lib/rom/repository/mapper_builder.rb', line 11 def header_builder @header_builder end |
Instance Method Details
#call(ast) ⇒ Object Also known as: []
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/repository/mapper_builder.rb', line 17 def call(ast) fetch_or_store(ast) { Mapper.build(header_builder[ast]) } end |