Sha256: daf862d5b45658694d1e9cdcfa155bcf407f23721b149a005f2ae92ae3f059b0
Contents?: true
Size: 455 Bytes
Versions: 4
Compression:
Stored size: 455 Bytes
Contents
require 'delegate' module Restspec module Stores class NamespaceStoreDelegator < SimpleDelegator def store(namespace) self << namespace end def get(namespace_name) possible_names = [namespace_name.to_s, namespace_name.to_sym] find { |ns| possible_names.include?(ns.name) } end end NamespaceStore = NamespaceStoreDelegator.new(Array.new) end NamespaceStore = Stores::NamespaceStore end
Version data entries
4 entries across 4 versions & 1 rubygems