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) ⇒ Fact

Returns a new instance of Fact.



87
88
89
90
# File 'lib/factbase/rules.rb', line 87

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

Instance Method Details

#all_propertiesObject



96
97
98
# File 'lib/factbase/rules.rb', line 96

def all_properties
  @fact.all_properties
end

#to_sObject



92
93
94
# File 'lib/factbase/rules.rb', line 92

def to_s
  @fact.to_s
end