Class: Message

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/apeye.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#textObject

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