Class: Gly::Markup
- Inherits:
-
Object
- Object
- Gly::Markup
- Defined in:
- lib/gly/markup.rb
Instance Method Summary collapse
- #<<(line) ⇒ Object
-
#initialize(text = '') ⇒ Markup
constructor
A new instance of Markup.
- #text ⇒ Object
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 |
#text ⇒ Object
7 8 9 |
# File 'lib/gly/markup.rb', line 7 def text @text.strip end |