Class: Pry::Shell::IO::Output

Inherits:
Base
  • Object
show all
Defined in:
lib/pry/shell/io/output.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Pry::Shell::IO::Base

Instance Method Details

#<<(data) ⇒ Object



31
32
33
34
35
36
# File 'lib/pry/shell/io/output.rb', line 31

def <<(data)
  wait_until_current

  object << data
  self
end


13
14
15
16
17
# File 'lib/pry/shell/io/output.rb', line 13

def print(data)
  wait_until_current

  object.print data
end

#printf(data) ⇒ Object



19
20
21
22
23
# File 'lib/pry/shell/io/output.rb', line 19

def printf(data)
  wait_until_current

  object.printf data
end

#puts(data) ⇒ Object



7
8
9
10
11
# File 'lib/pry/shell/io/output.rb', line 7

def puts(data)
  wait_until_current

  object.puts data
end

#write(data) ⇒ Object



25
26
27
28
29
# File 'lib/pry/shell/io/output.rb', line 25

def write(data)
  wait_until_current

  object.printf data
end