lib/eco/api/common/loaders/use_case.rb in eco-helpers-1.5.14 vs lib/eco/api/common/loaders/use_case.rb in eco-helpers-1.5.15
- old
+ new
@@ -12,9 +12,11 @@
end
@type = value
end
end
+ inheritable_class_vars :type
+
def initialize(usecases)
raise "Expected Eco::API::UseCases. Given #{usecases.class}" unless usecases.is_a?(Eco::API::UseCases)
usecases.define(self.name, type: self.type, &self.method(:main))
end