Class: LoremIpsumAmet::Paragraph
- Inherits:
-
Object
- Object
- LoremIpsumAmet::Paragraph
- Defined in:
- lib/lorem_ipsum_amet/paragraph.rb
Instance Method Summary collapse
-
#initialize(base, paragraphs, join_element) ⇒ Paragraph
constructor
A new instance of Paragraph.
- #random ⇒ Object
- #text ⇒ Object
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
#random ⇒ Object
14 15 16 |
# File 'lib/lorem_ipsum_amet/paragraph.rb', line 14 def random random_joined_text end |
#text ⇒ Object
10 11 12 |
# File 'lib/lorem_ipsum_amet/paragraph.rb', line 10 def text joined_text end |