Class: Factree::Conclusion

Inherits:
Object
  • Object
show all
Defined in:
lib/factree/conclusion.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (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