| Class | RS::Converter::RSAbstractConverter |
| In: |
rsil/converter/rsabstractconverter.rb
|
| Parent: | Object |
| Class: | RSAbstractConverter |
| File: | rsabstractconverter.rb |
| Purpose: | RSAbstractConverter represents an "abstract" class to give access to converting functions of inheriting classes. |
| Created by: | Mario Pehle, 2006/04/28 |
| Required modules: | - |
| Offers functions: | - |
| Description: | You have to impelement this method within your class. It converts a given object to an object of the given class. |
| Precondition: | - |
| Postcondition: | - |
| Exceptions: | NotImplementedError |
| Uses: | - |
| Returns: | Object |
| Parameters: | Name | i/o/io | default | Meaning |
| : | object | i | - | Object, the object to convert |
| : | klass | o | - | Class, the class to convert object |
# File rsil/converter/rsabstractconverter.rb, line 44
44: def convert object, klass
45: raise NotImplementedError, 'You have to overwrite this method.'
46: end
| Description: | You have to impelement this method within your class. It checks, whether it is possible to convert a given object to an object of the given class. |
| Precondition: | - |
| Postcondition: | - |
| Exceptions: | NotImplementedError |
| Uses: | - |
| Returns: | Object |
| Parameters: | Name | i/o/io | default | Meaning |
| : | object | i | - | Object, the object to convert |
| : | klass | o | - | Class, the class to convert object |
# File rsil/converter/rsabstractconverter.rb, line 62
62: def converts? object, klass
63: raise NotImplementedError, 'You have to overwrite this method.'
64: end