Sha256: 6dc49526fcee4d69ade0442609cd47526ffcc8c56ba426eb0ae5578853954ca7

Contents?: true

Size: 253 Bytes

Versions: 3

Compression:

Stored size: 253 Bytes

Contents

#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

$:.unshift File.join(File.dirname(__FILE__))

require 'lib/stdout/output'

demo = Stdout::Output.capture { puts "hoge" }

p demo

demo2 = Stdout::Output.capture {
  puts "Hello, "
  puts "World!"
}

p demo2

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stdout-0.0.3 demo.rb
stdout-0.0.2 demo.rb
stdout-0.0.1 demo.rb