lib/jets/lambda/function_constructor.rb in jets-0.8.18 vs lib/jets/lambda/function_constructor.rb in jets-0.9.0
- old
+ new
@@ -43,13 +43,13 @@
function_klass.module_eval(code)
adjust_tasks(function_klass)
function_klass # assign this to a Constant for a pretty class name
end
- # For anonymous classes method_added during task registeration contains ""
+ # For anonymous classes method_added during task registration contains ""
# for the class name. We adjust it here.
def adjust_tasks(klass)
- class_name = @code_path.sub(/.*app\/functions\//,'').sub(/\.rb$/, '')
+ class_name = @code_path.sub(/.*\/functions\//,'').sub(/\.rb$/, '')
class_name = class_name.classify
klass.tasks.each do |task|
task.class_name = class_name
task.type = "function"
end