lib/jets/lambda/dsl.rb in jets-3.2.2 vs lib/jets/lambda/dsl.rb in jets-4.0.0
- old
+ new
@@ -235,10 +235,14 @@
def ref(name)
"!Ref #{name.to_s.camelize}"
end
+ def sub(value)
+ "!Sub #{value.to_s.camelize}"
+ end
+
# meth is a Symbol
def method_added(meth)
return if %w[initialize method_missing].include?(meth.to_s)
return unless public_method_defined?(meth)
@@ -315,10 +319,11 @@
# Jets::Lambda::Functions > Jets::Controller::Base > ApplicationController ...
# > PostsController > ChildPostsController
#
# Do not include tasks from the direct subclasses of Jets::Lambda::Functions
# because those classes are abstract. Dont want those methods to be included.
- def find_all_tasks(public: true)
+ def find_all_tasks(options={})
+ public = options[:public].nil? ? true : options[:public]
klass = self
direct_subclasses = Jets::Lambda::Functions.subclasses
lookup = []
# Go up class inheritance and builds lookup structure in memory