Class: DeepDouble::Function
- Inherits:
-
Object
- Object
- DeepDouble::Function
- Defined in:
- lib/deep_double/function.rb,
lib/deep_double/function/validate_result_table.rb
Defined Under Namespace
Classes: ValidateResultTable
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(result_table) ⇒ Function
constructor
A new instance of Function.
Constructor Details
#initialize(result_table) ⇒ Function
Returns a new instance of Function.
13 14 15 16 |
# File 'lib/deep_double/function.rb', line 13 def initialize(result_table) @result_table = result_table validate_result_table end |
Instance Method Details
#call(*args) ⇒ Object
18 19 20 21 |
# File 'lib/deep_double/function.rb', line 18 def call(*args) validate_result_exists(args) result(args) end |