lib/active_debian_repository/package.rb
# Return the default value if the method name is a 
# known package property. Raise otherwise.
#
# * *Args*    :
# * *Returns* :
#   - Return the property value if defined.
# * *Raises* :
#   - NoMethodError 
#
Return the default value if the method name is a
known package property. Raise otherwise.

*Args*    :
*Returns* :
Return the property value if defined.
Return the default value if the method name is a known package property . Raise otherwise . * Args * : * Returns * : Return the property value if defined .
def method_missing (method_name, *args, &block)
      begin
        super 
      rescue NoMethodError 
        if default_attributes.has_key? method_name 
          return self.default_attributes[method_name]
        else
          raise NoMethodError 
        end 
      end 
    end
def method_missing ( method_name , * args , & block ) begin super rescue NoMethodError if default_attributes . has_key? method_name return self . default_attributes [ method_name ] else raise NoMethodError end end end
Return the default value if the method name is a
known package property.
Return the default value if the method name is a known package property .
# let activeBase to work as it wish. # if nothing handled it # check if we have a default value # nothing can be done, we give up
method_name
args
block