Sha256: 750f1793f82ce873d185f09ee5f8d01d13da67734cc7cfe14912ce993f327830
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
module Eco module API class SessionConfig class UseCases < Hash attr_reader :config def initialize(root:) super(nil) @root = root @config = @root end # CUSTOM USE CASES def add new_group = Eco::API::UseCases::UseGroup.new yield(new_group, config) self["use_group"] ||= Eco::API::UseCases::UseGroup.new 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eco-helpers-0.6.2 | lib/eco/api/session_config/use_cases.rb |
eco-helpers-0.6.1 | lib/eco/api/session_config/use_cases.rb |