Class: EchSpec::Ok

Inherits:
Object
  • Object
show all
Defined in:
lib/echspec/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#objObject (readonly)

Returns the value of attribute obj.



3
4
5
# File 'lib/echspec/result.rb', line 3

def obj
  @obj
end

Instance Method Details

#deconstructObject



9
10
11
# File 'lib/echspec/result.rb', line 9

def deconstruct
  [@obj]
end