Class: Factbase::Rules::Fact

Inherits:
Object
  • Object
show all
Defined in:
lib/factbase/rules.rb

Overview

Fact decorator.

This is an internal class, it is not supposed to be instantiated directly.

Instance Method Summary collapse

Constructor Details

#initialize(fact, check, fb) ⇒ Fact



69
70
71
72
73
# File 'lib/factbase/rules.rb', line 69

def initialize(fact, check, fb)
  @fact = fact
  @check = check
  @fb = fb
end

Instance Method Details

#all_propertiesObject



79
80
81
# File 'lib/factbase/rules.rb', line 79

def all_properties
  @fact.all_properties
end

#to_sObject



75
76
77
# File 'lib/factbase/rules.rb', line 75

def to_s
  @fact.to_s
end