Class: LoremIpsumAmet::Paragraph

Inherits:
Object
  • Object
show all
Defined in:
lib/lorem_ipsum_amet/paragraph.rb

Instance Method Summary collapse

Constructor Details

#initialize(base, paragraphs, join_element) ⇒ Paragraph

Returns a new instance of Paragraph.



4
5
6
7
8
# File 'lib/lorem_ipsum_amet/paragraph.rb', line 4

def initialize(base, paragraphs, join_element)
  @base = base
  @paragraphs = paragraphs
  @join_element = join_element
end

Instance Method Details

#randomObject



14
15
16
# File 'lib/lorem_ipsum_amet/paragraph.rb', line 14

def random
  random_joined_text
end

#textObject



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

def text
  joined_text
end