Sha256: 1344b7c6de4b80c804c8e7c7850da8945db6ef83eba5463fc70f6f1478f9f4e1
Contents?: true
Size: 631 Bytes
Versions: 9
Compression:
Stored size: 631 Bytes
Contents
# Copyright (c) 2015 Sqreen. All Rights Reserved. # Please refer to our terms for more information: https://www.sqreen.com/terms.html module Sqreen module Actions # Where the currently loaded actions are stored. Singleton class Repository include Singleton def add(params, action) action.class.index(params || {}, action) end def get(action_class, key) action_class = Base.get_type_class(action_class) unless action_class.class == Class action_class.actions_matching key end def clear Base.known_subclasses.each(&:clear) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems