Module: XDR::Namespace::ClassMethods

Defined in:
lib/xdr/namespace.rb

Instance Method Summary collapse

Instance Method Details

#load_all!Object



15
16
17
18
19
20
21
22
# File 'lib/xdr/namespace.rb', line 15

def load_all!
  constants.each do |const_name|
    const = const_get const_name
    const.public_send :load_all! if const.respond_to? :load_all!
  rescue NameError => e
    raise e unless /uninitialized constant #{const_name}/.match?(e.message)
  end
end