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