Sha256: 71cad3e37bec688487773e61726ff254465eda1d7c02837a1ce589a525f106cc
Contents?: true
Size: 419 Bytes
Versions: 5
Compression:
Stored size: 419 Bytes
Contents
require 'active_support' class LHS::Service # 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
5 entries across 5 versions & 1 rubygems