Class: Bugzilla::Skeleton

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

Overview

Bugzilla::Skeleton

Direct Known Subclasses

APITemplate, Bugzilla

Instance Method Summary collapse

Constructor Details

#initialize(iface) ⇒ Skeleton

Returns a new instance of Skeleton.



155
156
157
# File 'lib/bugzilla.rb', line 155

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



159
160
161
162
163
164
165
166
167
168
# File 'lib/bugzilla.rb', line 159

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