Class: Bugzilla::Skeleton
- Inherits:
-
Object
- Object
- Bugzilla::Skeleton
- Defined in:
- lib/bugzilla/skeleton.rb
Overview
Bugzilla::Skeleton
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(iface) ⇒ Skeleton
constructor
A new instance of Skeleton.
-
#method_missing(symbol, *args) ⇒ Object
def initialize.
Constructor Details
#initialize(iface) ⇒ Skeleton
Returns a new instance of Skeleton.
31 32 33 |
# File 'lib/bugzilla/skeleton.rb', line 31 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
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/bugzilla/skeleton.rb', line 35 def method_missing(symbol, *args) m = "_#{symbol}" klass = self.class.to_s.sub(/\ABugzilla::/, '') fm = "#{klass}.#{symbol}" if self.respond_to?(m, true) then __send__(m, fm, *args) else raise NoMethodError, sprintf("No such Bugzilla APIs: %s.%s", klass, symbol) end end |