Class: Factree::Conclusion
- Inherits:
-
Object
- Object
- Factree::Conclusion
- Defined in:
- lib/factree/conclusion.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value) ⇒ Conclusion
constructor
A new instance of Conclusion.
Constructor Details
#initialize(value) ⇒ Conclusion
Returns a new instance of Conclusion.
4 5 6 7 |
# File 'lib/factree/conclusion.rb', line 4 def initialize(value) @value = value freeze end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
2 3 4 |
# File 'lib/factree/conclusion.rb', line 2 def value @value end |
Instance Method Details
#==(other) ⇒ Object
9 10 11 12 |
# File 'lib/factree/conclusion.rb', line 9 def ==(other) self.class == other.class && @value == other.instance_variable_get(:@value) end |