module Eco module API class SessionConfig class UseCases < Hash def initialize(root:) super(nil) @root = root end # CUSTOM USE CASES def add self["use_group"] ||= Eco::API::UseCases::UseGroup.new new_group = Eco::API::UseCases::UseGroup.new yield(new_group, self) group = self["use_group"] group = group ? group.merge(new_group) : group self["use_group"] = group end def use_group self["use_group"] end end end end end