Sha256: 1774da3cedede6bcf496b0b8bbb95fb9abd206fd750939923517bb2de109d78b

Contents?: true

Size: 253 Bytes

Versions: 24

Compression:

Stored size: 253 Bytes

Contents

class StreaminatorHelper

  def extract_name(stream)
    name = case (stream.fileno)
      when 0 then '#<IO:$stdin>'
      when 1 then '#<IO:$stdout>'
      when 2 then '#<IO:$stderr>'
      else stream.inspect
    end
    
    return name
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ceedling-0.31.1 lib/ceedling/streaminator_helper.rb
ceedling-0.31.0 lib/ceedling/streaminator_helper.rb
ceedling-0.30.0 lib/ceedling/streaminator_helper.rb
ceedling-0.28.3 lib/ceedling/streaminator_helper.rb
ceedling-0.28.2 lib/ceedling/streaminator_helper.rb
ceedling-0.28.1 lib/ceedling/streaminator_helper.rb
ceedling-0.27.0 lib/ceedling/streaminator_helper.rb
ceedling-0.25.0 lib/ceedling/streaminator_helper.rb
ceedling-0.24.0 lib/ceedling/streaminator_helper.rb
ceedling-0.22.0 lib/ceedling/streaminator_helper.rb
ceedling-0.21.0 lib/ceedling/streaminator_helper.rb
ceedling-0.20.3 lib/ceedling/streaminator_helper.rb
ceedling-0.20.2 lib/ceedling/streaminator_helper.rb
ceedling-0.19.0 lib/ceedling/streaminator_helper.rb
ceedling-0.18.0 lib/ceedling/streaminator_helper.rb
ceedling-0.17.0 lib/ceedling/streaminator_helper.rb
ceedling-0.16.0 lib/ceedling/streaminator_helper.rb
ceedling-0.15.6 lib/ceedling/streaminator_helper.rb
ceedling-0.15.5 lib/ceedling/streaminator_helper.rb
ceedling-0.15.4 lib/ceedling/streaminator_helper.rb