Class: EchSpec::Ok
- Inherits:
-
Object
- Object
- EchSpec::Ok
- Defined in:
- lib/echspec/result.rb
Instance Attribute Summary collapse
-
#obj ⇒ Object
readonly
Returns the value of attribute obj.
Instance Method Summary collapse
- #deconstruct ⇒ Object
-
#initialize(obj) ⇒ Ok
constructor
A new instance of Ok.
Constructor Details
#initialize(obj) ⇒ Ok
Returns a new instance of Ok.
5 6 7 |
# File 'lib/echspec/result.rb', line 5 def initialize(obj) @obj = obj end |
Instance Attribute Details
#obj ⇒ Object (readonly)
Returns the value of attribute obj.
3 4 5 |
# File 'lib/echspec/result.rb', line 3 def obj @obj end |
Instance Method Details
#deconstruct ⇒ Object
9 10 11 |
# File 'lib/echspec/result.rb', line 9 def deconstruct [@obj] end |