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.15.3 lib/ceedling/streaminator_helper.rb
ceedling-0.15.2 lib/ceedling/streaminator_helper.rb
ceedling-0.15.1 lib/ceedling/streaminator_helper.rb
ceedling-0.15.0 lib/ceedling/streaminator_helper.rb