Class: Net::LDAP::Dataset::ChompedIO

Inherits:
Object
  • Object
show all
Defined in:
lib/net/ldap/dataset.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(io) ⇒ ChompedIO

Returns a new instance of ChompedIO.


94
95
96
# File 'lib/net/ldap/dataset.rb', line 94

def initialize(io)
  @io = io
end

Instance Method Details

#getsObject


97
98
99
100
# File 'lib/net/ldap/dataset.rb', line 97

def gets
  s = @io.gets
  s.chomp if s
end