class Rpictogrify::Theme
Public Class Methods
find(ident)
click to toggle source
# 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