Class: Factbase::Rules::Fact
- Inherits:
-
Object
- Object
- Factbase::Rules::Fact
- 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
- #all_properties ⇒ Object
-
#initialize(fact, check, fb) ⇒ Fact
constructor
A new instance of Fact.
- #to_s ⇒ Object
Constructor Details
#initialize(fact, check, fb) ⇒ Fact
Returns a new instance of Fact.
65 66 67 68 69 |
# File 'lib/factbase/rules.rb', line 65 def initialize(fact, check, fb) @fact = fact @check = check @fb = fb end |
Instance Method Details
#all_properties ⇒ Object
75 76 77 |
# File 'lib/factbase/rules.rb', line 75 def all_properties @fact.all_properties end |
#to_s ⇒ Object
71 72 73 |
# File 'lib/factbase/rules.rb', line 71 def to_s @fact.to_s end |