Class | Prawn::Chart::Themes |
In: |
lib/prawn/graph/themes.rb
|
Parent: | Object |
Themes serves as a point of interaction between the user and the underlying collection of themes made available to Prawn::Graph.
Adds the theme defined by the yaml file specified to the mapping of registered themes stored in +@@_themes_list+. Converts the YAML object into a Theme object for use in the application.
Called once when Prawn::Graph is loaded, initializes the list of themes currently bundled. If you have your own custom theme you‘d like to use instead, use _register_theme and give it the path to your theme file.
Hook into method_missing to allow us to do things like:
Prawn::Chart::Themes.theme_name
To return the theme object being looked for.