Module: Crazipsum
- Defined in:
- lib/crazipsum.rb,
lib/crazipsum/version.rb,
lib/crazipsum/registry.rb,
lib/crazipsum/generator.rb,
lib/crazipsum/dictionnary.rb
Overview
Ever wanted some dumber, crazier (fancier?) lorem ipsum? Here you go!
Defined Under Namespace
Classes: Dictionnary, Generator, Registry
Constant Summary collapse
- VERSION =
'0.2.0'
Class Method Summary collapse
-
.register(type, words, fillers: DEFAULT_FILLERS) ⇒ Object
Registers a new type of Dictionnary that can later be retrieved with Crazipsum().
Class Method Details
.register(type, words, fillers: DEFAULT_FILLERS) ⇒ Object
Registers a new type of Dictionnary that can later be retrieved with Crazipsum().
19 20 21 |
# File 'lib/crazipsum.rb', line 19 def register(type, words, fillers: DEFAULT_FILLERS) Crazipsum::Registry.instance.register(type, words, fillers: fillers) end |