Sha256: 96f5cc11384a16404fb84677f101fdb6f199f2958e201158631be9da51309f6b
Contents?: true
Size: 433 Bytes
Versions: 10
Compression:
Stored size: 433 Bytes
Contents
module Rbexy module ComponentProviders class NamespacedRbexyProvider < Rbexy::ComponentProviders::RbexyProvider attr_reader :namespaces def initialize(*namespaces) @namespaces = namespaces end def find(name) namespaces.each do |namespace| result = super("#{namespace}::#{name}") return result if result != nil end super end end end end
Version data entries
10 entries across 10 versions & 1 rubygems