Class: Deba::Paragraph
- Inherits:
-
Object
- Object
- Deba::Paragraph
- Defined in:
- lib/deba/paragraph.rb
Instance Method Summary collapse
- #always? ⇒ Boolean
-
#initialize(segments) ⇒ Paragraph
constructor
A new instance of Paragraph.
- #to_a ⇒ Object
Constructor Details
#initialize(segments) ⇒ Paragraph
Returns a new instance of Paragraph.
2 3 4 |
# File 'lib/deba/paragraph.rb', line 2 def initialize(segments) @segments = segments end |
Instance Method Details
#always? ⇒ Boolean
6 7 8 |
# File 'lib/deba/paragraph.rb', line 6 def always? false end |
#to_a ⇒ Object
10 11 12 |
# File 'lib/deba/paragraph.rb', line 10 def to_a @segments + ["\n\n"] end |