Class: Rpictogrify::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rpictogrify/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_pathObject

pictogram directory. default is ‘public/system’



11
12
13
# File 'lib/rpictogrify/configuration.rb', line 11

def base_path
  @base_path
end

#themeObject

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