Class: Deba::Paragraph

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

Instance Method Summary collapse

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

Returns:

  • (Boolean)


6
7
8
# File 'lib/deba/paragraph.rb', line 6

def always?
  false
end

#to_aObject



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

def to_a
  @segments + ["\n\n"]
end