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
Class Method Summary collapse
Instance Method Summary collapse
- #call(ast) ⇒ Object (also: #[]) private
-
#initialize(struct_builder) ⇒ HeaderBuilder
constructor
private
A new instance of HeaderBuilder.
Constructor Details
#initialize(struct_builder) ⇒ 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.
15 16 17 |
# File 'lib/rom/repository/header_builder.rb', line 15 def initialize(struct_builder) @struct_builder = struct_builder 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.
9 10 11 |
# File 'lib/rom/repository/header_builder.rb', line 9 def struct_builder @struct_builder end |
Class Method Details
.new(struct_builder = StructBuilder.new) ⇒ 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.
11 12 13 |
# File 'lib/rom/repository/header_builder.rb', line 11 def self.new(struct_builder = StructBuilder.new) super 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.
19 20 21 |
# File 'lib/rom/repository/header_builder.rb', line 19 def call(ast) Header.coerce(*visit(ast)) end |