Class | Autumn::Foliater |
In: |
lib/autumn/foliater.rb
|
Parent: | Object |
Loads Stems and Leaves and executes them in their own threads. Manages the threads and oversees all leaves. This is a singleton class.
This method yields each Leaf subclass that was loaded, allowing you to iterate over each leaf. For instance, to take attendance:
Foliater.instance.each_leaf { |leaf| leaf.stems.message "Here!" }
This method yields each Stem that was loaded, allowing you to iterate over each stem. For instance, to take attendance:
Foliater.instance.each_stem { |stem| stem.message "Here!" }
Reloads a leaf while it is running. Re-opens class definition files and runs them to redefine the classes. Does not work exactly as it should, but well enough for a rough hot-reload capability.