Class: ROM::Repository::HeaderBuilder Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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, **options)
  @struct_builder = StructBuilder.new(struct_namespace)
end

Instance Attribute Details

#struct_builderObject (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