Method: ROM::Mapper::DSL::ClassMethods#header
- Defined in:
- lib/rom/mapper/dsl.rb
#header ⇒ 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.
Return header of the mapper
This is memoized so mutating mapper class won’t have an effect wrt header after it was initialized for the first time.
TODO: freezing mapper class here is probably a good idea
67 68 69 |
# File 'lib/rom/mapper/dsl.rb', line 67 def header @header ||= dsl.header end |