Class: Bugzilla::Skeleton

Inherits:
Object
  • Object
show all
Defined in:
lib/bugzilla/skeleton.rb

Overview

rdoc

Bugzilla::Skeleton

Direct Known Subclasses

APITemplate, Bugzilla

Instance Method Summary collapse

Constructor Details

#initialize(iface) ⇒ Skeleton

Returns a new instance of Skeleton.



27
28
29
# File 'lib/bugzilla/skeleton.rb', line 27

def initialize(iface)
  @iface = iface
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol, *args) ⇒ Object

def initialize



31
32
33
34
35
36
37
38
39
40
# File 'lib/bugzilla/skeleton.rb', line 31

def method_missing(symbol, *args)
  m = "_#{symbol}"
  klass = self.class.to_s.sub(/\ABugzilla::/, '')
  fm = "#{klass}.#{symbol}"
  if respond_to?(m, true)
    __send__(m, fm, *args)
  else
    raise NoMethodError, format('No such Bugzilla APIs: %s.%s', klass, symbol)
  end
end