Class: Factbase::Inv::Fact

Inherits:
Object
  • Object
show all
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

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_propertiesObject



69
70
71
# File 'lib/factbase/inv.rb', line 69

def all_properties
  @fact.all_properties
end

#to_sObject



65
66
67
# File 'lib/factbase/inv.rb', line 65

def to_s
  @fact.to_s
end