class Google::Idtoken::Verifier::CLI::Out
A wrapper to output text information to any kind of buffer @example
out = Out.new(std_buffer) out.print('something') # => appends 'something' to std_buffer
Attributes
out[R]
@return [Object] buffer used as default outlet
Public Class Methods
new(out = $stdout)
click to toggle source
Bind a new out instance to two buffers @param out [Object] STDOUT is default
# File lib/google/idtoken/verifier/cli/out.rb, line 19 def initialize(out = $stdout) @out = out end
Public Instance Methods
pretty(object)
click to toggle source
Pretty print an object to out
@param object [Object]
# File lib/google/idtoken/verifier/cli/out.rb, line 31 def pretty(object) PP.pp(object, out) end
print(text = "")
click to toggle source
Prints to out
@param text [String]
# File lib/google/idtoken/verifier/cli/out.rb, line 25 def print(text = "") out.puts text end