module Rapsum
Public Class Methods
email()
click to toggle source
# File lib/rapsum.rb, line 8 def self.email NAMES.sample + '@gmail.com' end
give_me_a_kanye()
click to toggle source
# File lib/rapsum.rb, line 12 def self.give_me_a_kanye KANYEISM.sample end
long_sentence()
click to toggle source
# File lib/rapsum.rb, line 16 def self.long_sentence LONG_SENTENCE_SAMPLES.sample + '.' end
paragraph()
click to toggle source
# File lib/rapsum.rb, line 20 def self.paragraph paragraph = [] rand(5..10).times do paragraph << (SHORT_SENTENCE_SAMPLES + LONG_SENTENCE_SAMPLES).sample end paragraph.join('. ') + '.' end
short_sentence()
click to toggle source
# File lib/rapsum.rb, line 28 def self.short_sentence SHORT_SENTENCE_SAMPLES.sample + '.' end