Class: LipsumApp

Inherits:
Thor
  • Object
show all
Defined in:
lib/lipsum_app.rb

Instance Method Summary collapse

Instance Method Details

#bytes(amount = 0) ⇒ Object



36
37
38
39
40
# File 'lib/lipsum_app.rb', line 36

def bytes(amount=0)
  amount = amount.to_i
  opts = do_config
  STDOUT.puts amount.lipsum_bytes  if amount.to_i > 0
end

#lists(amount = 0) ⇒ Object



28
29
30
31
32
# File 'lib/lipsum_app.rb', line 28

def lists(amount=0)
  amount = amount.to_i
  opts = do_config
  STDOUT.puts amount.lipsum_lists  if amount.to_i > 0
end

#paragraphs(amount = 0) ⇒ Object



12
13
14
15
16
# File 'lib/lipsum_app.rb', line 12

def paragraphs(amount=0)
  amount = amount.to_i
  opts = do_config
  STDOUT.puts amount.lipsum_paragraphs opts if amount.to_i > 0
end

#words(amount = 0) ⇒ Object



20
21
22
23
24
# File 'lib/lipsum_app.rb', line 20

def words(amount=0)
  amount = amount.to_i
  opts = do_config
  STDOUT.puts amount.lipsum_words  if amount.to_i > 0
end