Class: Person

Inherits:
Object show all
Defined in:
lib/carat-dev/detach/tc_detach.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#logObject

Returns the value of attribute log.



15
16
17
# File 'lib/carat-dev/detach/tc_detach.rb', line 15

def log
  @log
end

Instance Method Details

#say(msg) ⇒ Object



16
17
18
19
# File 'lib/carat-dev/detach/tc_detach.rb', line 16

def say(msg)
  puts "Detached #{Process.pid}"
  @log.log("hello, i said #{msg}")
end

#waitObject



20
21
22
23
# File 'lib/carat-dev/detach/tc_detach.rb', line 20

def wait
  sleep 10
  "hi"
end