Class: Factbase::Inv::Fact
- Inherits:
-
Object
- Object
- Factbase::Inv::Fact
- Defined in:
- lib/factbase/inv.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, block) ⇒ Fact
constructor
A new instance of Fact.
- #to_s ⇒ Object
Constructor Details
#initialize(fact, block) ⇒ Fact
Returns a new instance of Fact.
60 61 62 63 |
# File 'lib/factbase/inv.rb', line 60 def initialize(fact, block) @fact = fact @block = block end |
Instance Method Details
#all_properties ⇒ Object
69 70 71 |
# File 'lib/factbase/inv.rb', line 69 def all_properties @fact.all_properties end |
#to_s ⇒ Object
65 66 67 |
# File 'lib/factbase/inv.rb', line 65 def to_s @fact.to_s end |