Sha256: 5c99b2434c1c3d8a56865fe5271a758bd16bd8a53ee6a0dace623297ea7f09f6
Contents?: true
Size: 358 Bytes
Versions: 3
Compression:
Stored size: 358 Bytes
Contents
module Rasti module DB class ComputedAttribute attr_reader :identifier def initialize(identifier, &join) @identifier = identifier @join = join end def apply_join(dataset, environment) join ? join.call(dataset, environment) : dataset end private attr_reader :join end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rasti-db-4.2.0 | lib/rasti/db/computed_attribute.rb |
rasti-db-4.1.1 | lib/rasti/db/computed_attribute.rb |
rasti-db-4.1.0 | lib/rasti/db/computed_attribute.rb |