For example:
I have these classes
- Extractor - it extracts some data in the database
- Formatter - it formats some of the data
- Layout - Put all data in one layout
- Storage - it stores the data
And i have one class that integrated all this classes:
class Runner def run data = Extractor.extract_all_data formatted = Formatter.format(data) correct_layout = Layout.to_correct_layout(formatted) Storage.store(correct_layout) end end