class Factbase::Accum

License
MIT
Copyright
Copyright © 2024-2025 Yegor Bugayenko
Author

Yegor Bugayenko (yegor256@gmail.com)
Accumulator of props, a decorator of Factbase::Fact.

def all_properties

def all_properties
  @fact.all_properties
end

def initialize(fact, props, pass)

Parameters:
  • pass (Boolean) -- TRUE if all "set" operations must go through, to the +fact+
  • props (Hash) -- Hash of props that were set
  • fact (Factbase::Fact) -- The fact to decorate
def initialize(fact, props, pass)
  @fact = fact
  @props = props
  @pass = pass
end

def to_s

def to_s
  "#{@fact} + #{@props}"
end