Class: RubyResult::AbstractResult
- Inherits:
-
Object
- Object
- RubyResult::AbstractResult
- Defined in:
- lib/ruby_result.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value) ⇒ AbstractResult
constructor
A new instance of AbstractResult.
Constructor Details
#initialize(value) ⇒ AbstractResult
Returns a new instance of AbstractResult.
11 12 13 |
# File 'lib/ruby_result.rb', line 11 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/ruby_result.rb', line 9 def value @value end |
Class Method Details
.===(other) ⇒ Object
5 6 7 |
# File 'lib/ruby_result.rb', line 5 def self.===(other) other.instance_of?(self) end |