Module: QbwcRequests::Factory

Defined in:
lib/qbwc_requests/factory.rb

Defined Under Namespace

Classes: Instantiator

Instance Method Summary collapse

Instance Method Details

#const_missing(name) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/qbwc_requests/factory.rb', line 24

def const_missing(name)
  if [:Mod, :Add, :Query].include?(name)
    Instantiator.new(self.name.gsub("Qbxml",""),name)
  else
    raise "NameError: uninitialized constant #{name}"
  end
end