Sha256: 1c1883165b45471899650f786f101f48d981d3e0fc20cde05d4532026618cdbb
Contents?: true
Size: 344 Bytes
Versions: 1
Compression:
Stored size: 344 Bytes
Contents
module DiviningRod class Mappings class << self attr_accessor :root_definition def define(opts = {}) @root_definition = Definition.new { true } yield Mapper.new(@root_definition, opts) end def evaluate(obj) @root_definition.evaluate(obj) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
divining_rod-0.4.0 | lib/divining_rod/mappings.rb |