Class: Sparky

Inherits:
Object
  • Object
show all
Defined in:
lib/sparky/name.rb,
lib/sparky/lorem.rb,
lib/sparky/sparky.rb

Defined Under Namespace

Classes: Lorem, Name, UnsupportedType

Class Method Summary collapse

Class Method Details

.lorem(type = :sentences, count = 1) ⇒ Object

Shortcut for Lorem.create

Example:

Lorem(:words, 10)


6
7
8
# File 'lib/sparky/sparky.rb', line 6

def self.lorem (type = :sentences, count = 1)
  Lorem.create(type, count)
end

.nameObject



10
11
12
# File 'lib/sparky/sparky.rb', line 10

def self.name
  Name.create
end