Sha256: d274685b8f139277539974de1f28945812cb7c414923af25e868d39a4ef0a06f
Contents?: true
Size: 411 Bytes
Versions: 165
Compression:
Stored size: 411 Bytes
Contents
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
165 entries across 165 versions & 1 rubygems