Skip to content

Commit 9ad1876

Browse files
committed
Accept syntax param for read
1 parent e559d8f commit 9ad1876

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/net/ldap.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,8 +1243,8 @@ def close
12431243
@conn = nil
12441244
end
12451245

1246-
def read
1247-
@conn.read_ber(Net::LDAP::AsnSyntax)
1246+
def read(syntax = Net::LDAP::AsnSyntax)
1247+
@conn.read_ber(syntax)
12481248
end
12491249
private :read
12501250

0 commit comments

Comments
 (0)