Exception: NoLambdaError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/r_kit/dsl/no_lambda_error.rb

Instance Method Summary collapse

Constructor Details

#initializeNoLambdaError

Returns a new instance of NoLambdaError.



2
3
4
5
6
7
8
9
# File 'lib/r_kit/dsl/no_lambda_error.rb', line 2

def initialize
  # TODO: add a link to smthng that explain the difference between proc & lambda
  # TODO: why not one of my videos ;)
  super %Q{
NoLambdaError: You need to use a lambda, not a proc
Use the fancy ruby2 `->(){}', or the good old `lambda{}' syntax
  }
end