lib/rom/mapping/definition.rb
def model(model = Undefined)
        if model == Undefined
          @model
        else
          @model = model
        end
      end
# Get or set model for the mapper
#
# @example
#
#   Mapping.build do
#     users do
#       model User
#     end
#   end
#
# @param [Class]
#
# @return [Class]
#
# @api public
Get or set model for the mapper
Get or set model for the mapper
def model(model = Undefined)
        if model == Undefined
          @model
        else
          @model = model
        end
      end
def model ( model = Undefined ) if model == Undefined @model else @model = model end end
Get or set model for the mapper
Get or set model for the mapper
None
Class
model
None
example
Mapping.build do users do model User end end
Mapping . build do users do model User end end
api
None