Class: Rpictogrify::Configuration
- Inherits:
-
Object
- Object
- Rpictogrify::Configuration
- Defined in:
- lib/rpictogrify/configuration.rb
Instance Attribute Summary collapse
-
#base_path ⇒ Object
pictogram directory.
-
#theme ⇒ Object
default theme, one of these themes: avataars_female, avataars_male, male_flat, monsters.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
-
#register_theme(ident, assets_path:) ⇒ Object
register a custome theme with assets.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 |
# File 'lib/rpictogrify/configuration.rb', line 13 def initialize @theme = :monsters @base_path = 'public/system' end |
Instance Attribute Details
#base_path ⇒ Object
pictogram directory. default is ‘public/system’
11 12 13 |
# File 'lib/rpictogrify/configuration.rb', line 11 def base_path @base_path end |
#theme ⇒ Object
default theme, one of these themes: avataars_female, avataars_male, male_flat, monsters. default is :monsters
8 9 10 |
# File 'lib/rpictogrify/configuration.rb', line 8 def theme @theme end |
Instance Method Details
#register_theme(ident, assets_path:) ⇒ Object
register a custome theme with assets. assets see assets/themes.
20 21 22 |
# File 'lib/rpictogrify/configuration.rb', line 20 def register_theme(ident, assets_path:) Rpictogrify::Theme.register(ident, assets_path: assets_path) end |