Class: Rpictogrify::Theme
- Inherits:
-
Object
- Object
- Rpictogrify::Theme
- Defined in:
- lib/rpictogrify/theme.rb
Class Method Summary collapse
Class Method Details
.find(ident) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/rpictogrify/theme.rb', line 12 def find(ident) theme_name = Rpictogrify::Inflector.camelize(ident.to_s) Object.const_get("Rpictogrify::Themes::#{theme_name}") rescue NameError raise ArgumentError.new('The ident argument must be one of themes: avataars_female, avataars_male, male_flat, monsters') end |