Class: Bugzilla::Skeleton
- Inherits:
-
Object
- Object
- Bugzilla::Skeleton
- Defined in:
- lib/bugzilla.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.
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 |