Class: Message
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
13 14 15 |
# File 'lib/apeye.rb', line 13 def text @text end |
Instance Method Details
#set_text(text = nil) ⇒ Object
15 16 17 |
# File 'lib/apeye.rb', line 15 def set_text(text = nil) @text = text || $stdout.string.split("\n").last end |