Class: Gly::Markup

Inherits:
Object
  • Object
show all
Defined in:
lib/gly/markup.rb

Instance Method Summary collapse

Constructor Details

#initialize(text = '') ⇒ Markup

Returns a new instance of Markup.



3
4
5
# File 'lib/gly/markup.rb', line 3

def initialize(text='')
  @text = text
end

Instance Method Details

#<<(line) ⇒ Object



11
12
13
# File 'lib/gly/markup.rb', line 11

def <<(line)
  @text += line
end

#textObject



7
8
9
# File 'lib/gly/markup.rb', line 7

def text
  @text.strip
end