Permalink
Browse files

lambda usages to Pirate Procs ->()

In memory of @jimweirich
  • Loading branch information...
robertodecurnex committed Mar 19, 2015
1 parent f7e291b commit eb1105e51bdc046e526a568e60201d49843c9901
View
@@ -24,13 +24,13 @@ def self.create file_path, method_name
end
return eval "
lambda do |#{param_names.join(',')}|
->(#{param_names.join(',')}) {
if !responses.has_key?([#{param_names.join(',')}])
raise Spectro::Exception::UnknownMockResponse.new(file_path, method_name)
end
return responses[[#{param_names.join(',')}]]
end
}
"
end
@@ -2,6 +2,6 @@
# DO NOT MODIFY ITS CONTENT. IT WILL BE
# OVERWRITTEN.
lambda do |i1, i2|
->(i1, i2) {
return i1 + i2
end
}
@@ -2,6 +2,6 @@
# DO NOT MODIFY ITS CONTENT. IT WILL BE
# OVERWRITTEN.
lambda do |f1, f2, f3|
->(f1, f2, f3) {
return f3 * f2 / f1
end
}
@@ -2,6 +2,6 @@
# DO NOT MODIFY ITS CONTENT. IT WILL BE
# OVERWRITTEN.
lambda do |s1|
->(s1) {
return "Say Hello to #{s1}"
end
}
@@ -2,6 +2,6 @@
# DO NOT MODIFY ITS CONTENT. IT WILL BE
# OVERWRITTEN.
lambda do |f1, f2, f3|
->(f1, f2, f3) {
return f3 * f2 / f1
end
}
@@ -2,6 +2,6 @@
# DO NOT MODIFY ITS CONTENT. IT WILL BE
# OVERWRITTEN.
lambda do |i1, i2|
->(i1, i2) {
return i1 + i2
end
}
@@ -2,6 +2,6 @@
# DO NOT MODIFY ITS CONTENT. IT WILL BE
# OVERWRITTEN.
lambda do |s1|
->(s1) {
return "Say Hello to #{s1}"
end
}
@@ -2,6 +2,6 @@
# DO NOT MODIFY ITS CONTENT. IT WILL BE
# OVERWRITTEN.
lambda do |i1, i2|
->(i1, i2) {
return i1 + i2
end
}
@@ -2,6 +2,6 @@
# DO NOT MODIFY ITS CONTENT. IT WILL BE
# OVERWRITTEN.
lambda do |f1, f2, f3|
->(f1, f2, f3) {
return f3 * f2 / f1
end
}
@@ -2,6 +2,6 @@
# DO NOT MODIFY ITS CONTENT. IT WILL BE
# OVERWRITTEN.
lambda do |s1|
->(s1) {
return "Say Hello to #{s1}"
end
}
@@ -2,6 +2,6 @@
# DO NOT MODIFY ITS CONTENT. IT WILL BE
# OVERWRITTEN.
lambda do |f1, f2, f3|
->(f1, f2, f3) {
return f3 * f2 / f1
end
}
@@ -2,6 +2,6 @@
# DO NOT MODIFY ITS CONTENT. IT WILL BE
# OVERWRITTEN.
lambda do |i1, i2|
->(i1, i2) {
return i1 + i2
end
}
@@ -2,6 +2,6 @@
# DO NOT MODIFY ITS CONTENT. IT WILL BE
# OVERWRITTEN.
lambda do |s1|
->(s1) {
return "Say Hello to #{s1}"
end
}

0 comments on commit eb1105e

Please sign in to comment.