Class: ROM::Repository::HeaderBuilder Private
- Inherits:
-
Object
- Object
- ROM::Repository::HeaderBuilder
- Defined in:
- lib/rom/repository/header_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
- #struct_builder ⇒ Object readonly private
Instance Method Summary collapse
- #call(ast) ⇒ Object (also: #[]) private
-
#initialize(struct_namespace: nil, **options) ⇒ HeaderBuilder
constructor
private
A new instance of HeaderBuilder.
Constructor Details
#initialize(struct_namespace: nil, **options) ⇒ HeaderBuilder
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 HeaderBuilder.
10 11 12 |
# File 'lib/rom/repository/header_builder.rb', line 10 def initialize(struct_namespace: nil, **) @struct_builder = StructBuilder.new(struct_namespace) end |
Instance Attribute Details
#struct_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.
8 9 10 |
# File 'lib/rom/repository/header_builder.rb', line 8 def struct_builder @struct_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.
14 15 16 |
# File 'lib/rom/repository/header_builder.rb', line 14 def call(ast) Header.coerce(*visit(ast)) end |