Sha256: 77317916c114ee84c530af5f6544f5e49f6f381551652e9e7d78754ea7abd893
Contents?: true
Size: 442 Bytes
Versions: 76
Compression:
Stored size: 442 Bytes
Contents
# frozen_string_literal: true require 'active_support' class LHS::Record # Mapping allows to configure some accessors that access data using a provided proc module Mapping extend ActiveSupport::Concern module ClassMethods def mapping @mapping ||= {} end def mapping=(mapping) @mapping = mapping end def map(name, block) mapping[name] = block end end end end
Version data entries
76 entries across 76 versions & 1 rubygems