Sha256: 0b32a6ed8fd8aa66f8400302454036a5847170a207ef1df9c56ec1d730dc021e
Contents?: true
Size: 785 Bytes
Versions: 3
Compression:
Stored size: 785 Bytes
Contents
module Eco module API class Session class Config 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"] ||= Eco::API::UseCases::UseGroup.new end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
eco-helpers-0.6.17 | lib/eco/api/session/config/use_cases.rb |
eco-helpers-0.6.16 | lib/eco/api/session/config/use_cases.rb |
eco-helpers-0.6.15 | lib/eco/api/session/config/use_cases.rb |